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, wait
asJreClock
public long laterBy(long durationInMillis)
Clock
laterBy
in interface Clock
durationInMillis
- The point in the future, in milliseconds relative to the current time
.public boolean isNowBefore(long endInMillis)
Clock
current time
.isNowBefore
in interface Clock
endInMillis
- The timestamp to check.