Package org.agrona.concurrent
Class SystemEpochNanoClock
java.lang.Object
org.agrona.concurrent.SystemEpochNanoClock
- All Implemented Interfaces:
EpochNanoClock
Implementation that calls
HighResolutionClock.epochNanos().- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SystemEpochNanoClockAs there is no instance state then this object can be used to save on allocation. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
INSTANCE
As there is no instance state then this object can be used to save on allocation.
-
-
Constructor Details
-
SystemEpochNanoClock
public SystemEpochNanoClock()Create a new instance.
-
-
Method Details
-
nanoTime
public long nanoTime()Time in nanoseconds since 1 Jan 1970 UTC.- Specified by:
nanoTimein interfaceEpochNanoClock- Returns:
- the number of nanoseconds since 1 Jan 1970 UTC.
-