public static void stopTimer() throws MetaException {
    Deadline deadline = getCurrentDeadline();
    if (deadline != null) {
      deadline.startTime = NO_DEADLINE;
      deadline.method = null;
    } else {
      throw MetaStoreUtils.newMetaException(new DeadlineException("The threadlocal Deadline is null," +
          " please register it first."));
    }
  }
end the time after a method is done.
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/Deadline.java