Class ZeroTimeClock
java.lang.Object
io.opencensus.common.Clock
io.opencensus.internal.ZeroTimeClock
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final ZeroTimeClockprivate static final Timestamp -
Constructor Summary
Constructors -
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.
-
Field Details
-
INSTANCE
-
ZERO_TIMESTAMP
-
-
Constructor Details
-
ZeroTimeClock
private ZeroTimeClock()
-
-
Method Details
-
getInstance
-
now
-
nowNanos
public long nowNanos()Description copied from class:ClockReturns a time measurement with nanosecond precision that can only be used to calculate elapsed time.
-