Class SystemMillisClock
java.lang.Object
org.apache.logging.log4j.core.util.SystemMillisClock
- All Implemented Interfaces:
Clock
Implementation of the
Clock
interface that returns the system time in millisecond granularity.- Since:
- 2.11
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
SystemMillisClock
public SystemMillisClock()
-
-
Method Details
-
currentTimeMillis
public long currentTimeMillis()Returns the system time.- Specified by:
currentTimeMillis
in interfaceClock
- Returns:
- the result of calling
System.currentTimeMillis()
-