public static StatisticsClock clock(boolean enabled) {
    if (enabled) {
      return enabledClock(StatisticsClockFactory::getTime);
    }
    return disabledClock();
  }
Creates new {@code StatisticsClock} using specified boolean value.
geode-core/src/main/java/org/apache/geode/internal/statistics/StatisticsClockFactory.java