public class StepClock extends java.lang.Object implements Clock
Constructor and Description |
---|
StepClock(Clock impl,
long step)
Create a new instance.
|
Modifier and Type | Method and Description |
---|---|
long |
monotonicTime()
Current time from a monotonic clock source.
|
long |
wallTime()
Current wall time in milliseconds since the epoch.
|
public StepClock(Clock impl, long step)
public long wallTime()
Clock
StepLong
.public long monotonicTime()
Clock
monotonicTime
in interface Clock