public class AtomicClock extends Object implements MicrosClock
| Constructor and Description |
|---|
AtomicClock() |
| Modifier and Type | Method and Description |
|---|---|
long |
epochMicros()
Returns the current time in microseconds since the UNIX epoch (January 1,
1970, 00:00:00 UTC).
|
long |
time()
Get the current timestamp (in microseconds), which is guaranteed to be
unique.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcurrentTimeMicrospublic long epochMicros()
MicrosClockImplementations must ensure that the returned value is a strictly increasing timestamp with a resolution of at least one microsecond.
epochMicros in interface MicrosClockpublic long time()