|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Clock
Clock which can be used to get the amount of elapsed milliseconds in system time.
The default system implementation can be accessed at SYSTEM.
Primarily used for testing.
| Field Summary | |
|---|---|
static Clock |
SYSTEM
Provides the default System implementation of a Clock by using System.currentTimeMillis(). |
| Method Summary | |
|---|---|
long |
currentTimeMillis()
Returns the current time in milliseconds since midnight, January 1, 1970 UTC, to match the behavior of System.currentTimeMillis(). |
| Field Detail |
|---|
static final Clock SYSTEM
System.currentTimeMillis().
| Method Detail |
|---|
long currentTimeMillis()
System.currentTimeMillis().
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||