|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Clock
A simple encapsulation to allowing timing
Method Summary | |
---|---|
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()
|
Method Detail |
---|
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |