Package io.opencensus.internal
Class ZeroTimeClock
java.lang.Object
io.opencensus.common.Clock
io.opencensus.internal.ZeroTimeClock
A
Clock that always returns 0.-
Method Summary
Modifier and TypeMethodDescriptionstatic ZeroTimeClockReturns aZeroTimeClock.now()Obtains the current instant from this clock.longnowNanos()Returns a time measurement with nanosecond precision that can only be used to calculate elapsed time.
-
Method Details
-
getInstance
Returns aZeroTimeClock.- Returns:
- a
ZeroTimeClock.
-
now
Description copied from class:ClockObtains the current instant from this clock. -
nowNanos
public long nowNanos()Description copied from class:ClockReturns a time measurement with nanosecond precision that can only be used to calculate elapsed time.
-