StatisticsClockFactory { public static StatisticsClock disabledClock() { return clock(() -> 0, () -> false); }  @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 disabledClock_createsDisabledClock() { StatisticsClock clock = StatisticsClockFactory.disabledClock(); assertThat(clock.isEnabled()).isFalse(); }