Package com.google.api.client.util
Interface NanoClock
-
public interface NanoClock
Nano clock which can be used to measure elapsed time in nanoseconds.The default system implementation can be accessed at
SYSTEM
. Alternative implementations may be used for testing.- Since:
- 1.14
- Author:
- Yaniv Inbar
-
-
Field Summary
Fields Modifier and Type Field Description static NanoClock
SYSTEM
Provides the default System implementation of a nano clock by usingSystem.nanoTime()
.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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 ofSystem.nanoTime()
.
-
-
-
Field Detail
-
SYSTEM
static final NanoClock SYSTEM
Provides the default System implementation of a nano clock by usingSystem.nanoTime()
.
-
-
Method Detail
-
nanoTime
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 ofSystem.nanoTime()
.
-
-