Class SystemNanoClock

java.lang.Object
org.apache.logging.log4j.core.util.SystemNanoClock
All Implemented Interfaces:
NanoClock

public final class SystemNanoClock extends Object implements NanoClock
Implementation of the NanoClock interface that returns the system nano time.
  • Constructor Details

    • SystemNanoClock

      public SystemNanoClock()
  • Method Details

    • nanoTime

      public long nanoTime()
      Returns the system high-resolution time.
      Specified by:
      nanoTime in interface NanoClock
      Returns:
      the result of calling System.nanoTime()