Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.logging.log4j.core.util
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 Summary
`SystemClock()`

Method Summary
`long` | `currentTimeMillis()` Returns the system time.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### SystemClock

    public SystemClock()

Method Detail

### currentTimeMillis

    public long currentTimeMillis()

  Returns the system time.

  Specified by:
    `currentTimeMillis` in interface `Clock`
  Returns:
    the result of calling `System.currentTimeMillis()`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 1999-2015 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.