All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.netflix.spectator.micrometer.MicrometerClock Maven / Gradle / Ivy

There is a newer version: 1.8.2
Show newest version
package com.netflix.spectator.micrometer;

import com.netflix.spectator.api.Clock;

/**
 * Wraps a Micrometer Clock to make it conform to the Spectator API.
 */
class MicrometerClock implements Clock {

  private final io.micrometer.core.instrument.Clock impl;

  /** Create a new instance. */
  MicrometerClock(io.micrometer.core.instrument.Clock impl) {
    this.impl = impl;
  }

  @Override public long wallTime() {
    return impl.wallTime();
  }

  @Override public long monotonicTime() {
    return impl.monotonicTime();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy