Package org.agrona.concurrent
Class SystemEpochNanoClock
- java.lang.Object
-
- org.agrona.concurrent.SystemEpochNanoClock
-
- All Implemented Interfaces:
EpochNanoClock
public class SystemEpochNanoClock extends java.lang.Object implements EpochNanoClock
Implementation that callsHighResolutionClock.epochNanos()
.- See Also:
OffsetEpochNanoClock
-
-
Constructor Summary
Constructors Constructor Description SystemEpochNanoClock()
Create a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
nanoTime()
Time in nanoseconds since 1 Jan 1970 UTC.
-
-
-
Method Detail
-
nanoTime
public long nanoTime()
Time in nanoseconds since 1 Jan 1970 UTC.- Specified by:
nanoTime
in interfaceEpochNanoClock
- Returns:
- the number of nanoseconds since 1 Jan 1970 UTC.
-
-