public class NanosecondClusterClock extends Object implements ClusterClock
ClusterClock
implemented by calling HighResolutionClock.epochNanos()
.Constructor and Description |
---|
NanosecondClusterClock() |
Modifier and Type | Method and Description |
---|---|
long |
time()
The count of
ClusterClock.timeUnit() s since 1 Jan 1970 UTC. |
TimeUnit |
timeUnit()
The unit of time returned from the
ClusterClock.time() method. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
map, map, timeMicros, timeMillis, timeNanos
public TimeUnit timeUnit()
ClusterClock.time()
method.timeUnit
in interface ClusterClock
ClusterClock.time()
method.public long time()
ClusterClock.timeUnit()
s since 1 Jan 1970 UTC.time
in interface ClusterClock
ClusterClock.timeUnit()
s since 1 Jan 1970 UTC.Copyright © 2014-2020 Real Logic Limited. All Rights Reserved.