| Constructor and Description |
|---|
SystemClock() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isNowBefore(long endInMillis)
Tests if a point in time occurs before the
current time. |
long |
laterBy(long durationInMillis)
Computes a point of time in the future.
|
long |
now() |
public long laterBy(long durationInMillis)
ClocklaterBy in interface ClockdurationInMillis - The point in the future, in milliseconds relative to the current time.public boolean isNowBefore(long endInMillis)
Clockcurrent time.isNowBefore in interface ClockendInMillis - The timestamp to check.