public interface NanoClock
The default system implementation can be accessed at SYSTEM. Alternative implementations may be used for testing.
| Modifier and Type | Field and Description |
|---|---|
static NanoClock |
SYSTEM
Provides the default System implementation of a nano clock by using
System.
|
| Modifier and Type | Method and Description |
|---|---|
long |
nanoTime()
Returns the current value of the most precise available system timer, in nanoseconds for use to measure elapsed time, to match the behavior of
System.
|
static final NanoClockSYSTEM
System.nanoTime() .
long nanoTime()
System.nanoTime() .