Class OffsetClock

  • All Implemented Interfaces:
    io.opentelemetry.sdk.common.Clock

    public final class OffsetClock
    extends Object
    implements io.opentelemetry.sdk.common.Clock
    • Method Detail

      • now

        public long now()
        Specified by:
        now in interface io.opentelemetry.sdk.common.Clock
      • nanoTime

        public long nanoTime()
        Specified by:
        nanoTime in interface io.opentelemetry.sdk.common.Clock
      • offsetClock

        public static io.opentelemetry.sdk.common.Clock offsetClock​(long offsetInNanos)
        Parameters:
        offsetInNanos - the duration to add, in nanos