public final class CoarseCachedClock extends Object implements Clock
Modifier and Type | Method and Description |
---|---|
long |
currentTimeMillis()
Returns the value of a private long field that is updated by a background
thread once every millisecond.
|
static CoarseCachedClock |
instance()
Returns the singleton instance.
|
public static CoarseCachedClock instance()
public long currentTimeMillis()
currentTimeMillis
in interface Clock
Copyright © 1999-2021 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.