public static HighResolutionClock mayCreateHighResolutionClock(Config config) {
    final MetricsConfig metricsConfig = new MetricsConfig(config);
    return metricsConfig.getMetricsTimerEnabled() ? System::nanoTime : () -> 0;
  }
Create a new gauge by delegating to the underlying metrics registry
@param name name of the gauge
@param supplier a function that supplies the value
@param <T> type of the value
@return newly created gauge
samza-core/src/main/java/org/apache/samza/table/utils/TableMetricsUtil.java