Clock.@Deprecated
public interface Clock
| Modifier and Type | Method and Description |
|---|---|
default java.time.Clock |
asJreClock()
Deprecated.
|
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.
|
long now()
System.currentTimeMillis()long laterBy(long durationInMillis)
durationInMillis - The point in the future, in milliseconds relative to the current time.boolean isNowBefore(long endInMillis)
current time.endInMillis - The timestamp to check.default java.time.Clock asJreClock()