@Override
  public <T> T record(Supplier<T> supplier) {
    final long s = clock.monotonicTime();
    try {
      return supplier.get();
    } finally {
      final long e = clock.monotonicTime();
      record(e - s, TimeUnit.NANOSECONDS);
    }
  }
Executes the given supplier, records its duration, and returns the supplied value.
geode-core/src/main/java/org/apache/geode/internal/statistics/meters/LegacyStatTimer.java