| Constructor and Description |
|---|
MockClock() |
| Modifier and Type | Method and Description |
|---|---|
long |
add(Duration duration) |
long |
add(long amount,
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 long monotonicTime()
ClockmonotonicTime in interface Clockpublic long wallTime()
ClockStepLong.public long add(long amount,
TimeUnit unit)
public long add(Duration duration)
public long addSeconds(long amount)
public static MockClock clock(MeterRegistry registry)
Copyright © 2020 LeanCloud. All rights reserved.