StatisticsClockFactory { public static StatisticsClock enabledClock() { return clock(() -> getTime(), () -> true); }  @Deprecated static long getTimeIfEnabled(); static long getTime(); static StatisticsClock clock(); static StatisticsClock clock(boolean enabled); static StatisticsClock enabledClock(); static StatisticsClock enabledClock(LongSupplier time); static StatisticsClock disabledClock(); static StatisticsClock clock(LongSupplier time, BooleanSupplier isEnabled); @Immutable
  static final String ENABLE_CLOCK_STATS_PROPERTY; @Immutable
  static final boolean enableClockStats; }
@Test public void enabledClock_createsEnabledClock() { StatisticsClock clock = StatisticsClockFactory.enabledClock(() -> 24); assertThat(clock.isEnabled()).isTrue(); }