Package com.google.api.core
Class CurrentMillisClock
java.lang.Object
com.google.api.core.CurrentMillisClock
- All Implemented Interfaces:
ApiClock,Serializable
Implementation of the
ApiClock interface, which uses System.currentTimeMillis()
as time source.- See Also:
-
Method Details
-
getDefaultClock
-
nanoTime
public long nanoTime()Description copied from interface:ApiClockReturns the current value of this clock's high-resolution time source, in nanoseconds. -
millisTime
public long millisTime()Description copied from interface:ApiClockReturns the current value of this clock's high-resolution time source, in milliseconds.- Specified by:
millisTimein interfaceApiClock
-