Class SystemClock
java.lang.Object
com.loomcache.server.consensus.SystemClock
- All Implemented Interfaces:
Clock
System clock implementation using
System.nanoTime().
This is the production clock for all Raft timing operations.
For testing, use TestClock instead.
-
Field Summary
Fields -
Method Summary
-
Field Details
-
INSTANCE
-
-
Method Details
-
nanoTime
public long nanoTime()Description copied from interface:ClockReturns the current time in nanoseconds.The absolute value is meaningless; only differences matter. This is analogous to
System.nanoTime().
-