public static StatisticsClock clock(LongSupplier time, BooleanSupplier isEnabled) {
    return new StatisticsClock() {
      @Override
      public long getTime() {
        return time.getAsLong();
      }

      @Override
      public boolean isEnabled() {
        return isEnabled.getAsBoolean();
      }
    };
  }
Creates new {@code StatisticsClock} using specified boolean value.
geode-core/src/main/java/org/apache/geode/internal/statistics/StatisticsClockFactory.java