Class SystemEpochNanoClock

java.lang.Object
org.agrona.concurrent.SystemEpochNanoClock
All Implemented Interfaces:
EpochNanoClock

public class SystemEpochNanoClock extends Object implements EpochNanoClock
Implementation that calls HighResolutionClock.epochNanos().
See Also:
  • Constructor Details

    • SystemEpochNanoClock

      public SystemEpochNanoClock()
  • Method Details

    • nanoTime

      public long nanoTime()
      Time in nanoseconds since 1 Jan 1970 UTC.
      Specified by:
      nanoTime in interface EpochNanoClock
      Returns:
      the number of nanoseconds since 1 Jan 1970 UTC.