Class SystemClock
- java.lang.Object
-
- com.google.common.flogger.backend.system.Clock
-
- com.google.common.flogger.backend.system.SystemClock
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetCurrentTimeNanos()Returns the current time from the epoch (00:00 1st Jan, 1970) with nanosecond granularity, though not necessarily nanosecond precision.static SystemClockgetInstance()java.lang.StringtoString()
-
-
-
Method Detail
-
getInstance
public static SystemClock getInstance()
-
getCurrentTimeNanos
public long getCurrentTimeNanos()
Description copied from class:ClockReturns the current time from the epoch (00:00 1st Jan, 1970) with nanosecond granularity, though not necessarily nanosecond precision. This clock measures UTC and is not required to handle leap seconds.- Specified by:
getCurrentTimeNanosin classClock
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-