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