public interface Clock
| 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() |
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 timestamnp to check.Copyright © 2015. All rights reserved.