- All Implemented Interfaces:
NanoClock
Implementation of the NanoClock
interface that returns the system nano time.
-
Constructor Summary
Constructors
-
Method Summary
long
Returns the system high-resolution time.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
SystemNanoClock
public SystemNanoClock()
-
Method Details
-
nanoTime
public long nanoTime()
Returns the system high-resolution time.
- Specified by:
nanoTime
in interface NanoClock
- Returns:
- the result of calling
System.nanoTime()