Class SystemMillisClock

java.lang.Object
org.apache.logging.log4j.core.util.SystemMillisClock
All Implemented Interfaces:
Clock

public final class SystemMillisClock extends Object implements Clock
Implementation of the Clock interface that returns the system time in millisecond granularity.
Since:
2.11
  • Constructor Details

    • SystemMillisClock

      public SystemMillisClock()
  • Method Details

    • currentTimeMillis

      public long currentTimeMillis()
      Returns the system time.
      Specified by:
      currentTimeMillis in interface Clock
      Returns:
      the result of calling System.currentTimeMillis()