| Constructor and Description |
|---|
MockClock() |
| Modifier and Type | Method and Description |
|---|---|
long |
add(java.time.Duration duration) |
long |
add(long amount,
java.util.concurrent.TimeUnit unit) |
long |
addSeconds(long amount) |
static MockClock |
clock(MeterRegistry registry) |
long |
monotonicTime()
Current time from a monotonic clock source.
|
long |
wallTime()
Current wall time in milliseconds since the epoch.
|
public static MockClock clock(MeterRegistry registry)
public long monotonicTime()
ClockmonotonicTime in interface Clockpublic long wallTime()
ClockStepLong.public long add(long amount,
java.util.concurrent.TimeUnit unit)
public long add(java.time.Duration duration)
public long addSeconds(long amount)