Package io.opencensus.implcore.common
Class MillisClock
java.lang.Object
io.opencensus.common.Clock
io.opencensus.implcore.common.MillisClock
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MillisClock
Returns aMillisClock
.now()
Obtains the current instant from this clock.long
nowNanos()
Returns a time measurement with nanosecond precision that can only be used to calculate elapsed time.
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
MillisClock
private MillisClock()
-
-
Method Details
-
getInstance
Returns aMillisClock
.- Returns:
- a
MillisClock
.
-
now
Description copied from class:Clock
Obtains the current instant from this clock. -
nowNanos
public long nowNanos()Description copied from class:Clock
Returns a time measurement with nanosecond precision that can only be used to calculate elapsed time.
-