Class SystemClock

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

public final class SystemClock extends Object implements Clock
Implementation of the Clock interface that returns the system time.
  • Constructor Details

    • SystemClock

      public SystemClock()
  • Method Details

    • currentTimeMillis

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