public void endScope(MetricsScope scope) {
    ((CodahaleMetricsScope) scope).close();
  }
Closes scope, and records the time taken
standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/common/metrics/metrics2/CodahaleMetrics.java