| Modifier and Type | Field and Description |
|---|---|
private long |
fixedNanoTime |
| Constructor and Description |
|---|
DummyNanoClock() |
DummyNanoClock(long fixedNanoTime)
Constructs a new DummyNanoClock with the specified value to return.
|
| Modifier and Type | Method and Description |
|---|---|
long |
nanoTime()
Returns the constructor value.
|
public DummyNanoClock()
public DummyNanoClock(long fixedNanoTime)
fixedNanoTime - the value to return from nanoTime().