public final class DummyNanoClock extends Object implements NanoClock
NanoClock
interface that always returns a fixed value.Constructor and Description |
---|
DummyNanoClock() |
DummyNanoClock(long fixedNanoTime)
Constructs a new DummyNanoClock with the specified value to return.
|
public DummyNanoClock()
public DummyNanoClock(long fixedNanoTime)
fixedNanoTime
- the value to return from nanoTime()
.Copyright © 1999-2021 The 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.