public class HighResolutionClock extends Object
This implementation my be replaced on some platforms for greater performance.
Note: The actual provided resolution may be a higher granularity than the possible precision. For example, on Java 8 many JVMs will only advance a millisecond per tick so when requesting micros or nanos then the returned time may be a multiple of milliseconds. Later JVMs tend to improve on this.
Constructor and Description |
---|
HighResolutionClock() |
Modifier and Type | Method and Description |
---|---|
static long |
epochMicros()
The number of microseconds since the 1 Jan 1970 UTC.
|
static long |
epochMillis()
The number of milliseconds since the 1 Jan 1970 UTC.
|
static long |
epochNanos()
The number of nanoseconds since the 1 Jan 1970 UTC.
|
public static long epochMillis()
public static long epochMicros()
public static long epochNanos()
Copyright © 2014-2021 Real Logic Limited. All Rights Reserved.