Class Clocks
java.lang.Object
io.jenkins.plugins.opentelemetry.opentelemetry.common.Clocks
Utils for
Clock
-
Method Summary
Modifier and TypeMethodDescriptionstatic io.opentelemetry.sdk.common.Clock
static io.opentelemetry.sdk.common.Clock
monotonicClock
(io.opentelemetry.sdk.common.Clock delegate) static io.opentelemetry.sdk.common.Clock
monotonicOffsetClock
(long offsetInNanos) static io.opentelemetry.sdk.common.Clock
offsetClock
(long offsetInNanos, io.opentelemetry.sdk.common.Clock baseClock)
-
Method Details
-
monotonicOffsetClock
public static io.opentelemetry.sdk.common.Clock monotonicOffsetClock(long offsetInNanos) -
offsetClock
public static io.opentelemetry.sdk.common.Clock offsetClock(long offsetInNanos, io.opentelemetry.sdk.common.Clock baseClock) - Parameters:
offsetInNanos
- the duration to add, in nanos
-
monotonicClock
public static io.opentelemetry.sdk.common.Clock monotonicClock(io.opentelemetry.sdk.common.Clock delegate) -
monotonicClock
public static io.opentelemetry.sdk.common.Clock monotonicClock()
-