Class DummyNanoClock
java.lang.Object
org.apache.logging.log4j.core.util.DummyNanoClock
- All Implemented Interfaces:
NanoClock
Implementation of the
NanoClock
interface that always returns a fixed value.-
Constructor Summary
ConstructorDescriptionDummyNanoClock
(long fixedNanoTime) Constructs a new DummyNanoClock with the specified value to return. -
Method Summary
-
Constructor Details
-
DummyNanoClock
public DummyNanoClock() -
DummyNanoClock
public DummyNanoClock(long fixedNanoTime) Constructs a new DummyNanoClock with the specified value to return.- Parameters:
fixedNanoTime
- the value to return fromnanoTime()
.
-
-
Method Details