@Override
  public void record(Runnable runnable) {
    final long s = clock.monotonicTime();
    try {
      runnable.run();
    } finally {
      final long e = clock.monotonicTime();
      record(e - s, TimeUnit.NANOSECONDS);
    }
  }
Executes the given runnable and records its duration.
geode-core/src/main/java/org/apache/geode/internal/statistics/meters/LegacyStatTimer.java