public Timer register(MeterRegistry registry) {
      Clock clock = registry.config().clock();
      Timer underlyingTimer = builder.register(registry);
      return new LegacyStatTimer(clock, underlyingTimer, countStatisticBinding,
          timeStatisticBinding);
    }
Registers a {@code Timer} with the given registry, and returns a {@code LegacyStatTimer}
that wraps the timer to update and read the associated stats. Note that the returned
{@code LegacyStatTimer} is not registered with the registry, but it has the same ID, so
it can be used to remove the registered timer from the registry.
geode-core/src/main/java/org/apache/geode/internal/statistics/meters/LegacyStatTimer.java