| Constructor and Description |
|---|
SystemClock()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isNowBefore(long endInMillis)
Deprecated.
Tests if a point in time occurs before the
current time. |
long |
laterBy(long durationInMillis)
Deprecated.
Computes a point of time in the future.
|
long |
now()
Deprecated.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitasJreClockpublic 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.