Package com.palantir.common.time
Class SystemClock
- java.lang.Object
-
- com.palantir.common.time.SystemClock
-
-
Constructor Summary
Constructors Constructor Description SystemClock()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getTimeMillis()
Returns the time in milliseconds.
-
-
-
Method Detail
-
getTimeMillis
public long getTimeMillis()
Description copied from interface:Clock
Returns the time in milliseconds. This is conventionally interpreted as the number of milliseconds since 1970-01-01T00:00Z excluding leap seconds not included in the present UTC day, which means it is not monotonic even if the underlying clock is perfectly accurate and never adjusted! Clock geekery aside, this should just return System.currentTimeMillis().- Specified by:
getTimeMillis
in interfaceClock
-
-