public abstract class Clock
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static Clock |
SYSTEM_CLOCK
Default implementation that returns system time.
|
| Constructor and Description |
|---|
Clock() |
| Modifier and Type | Method and Description |
|---|---|
abstract long |
millis()
Return current time in millis.
|
abstract java.util.Date |
now()
Return current Date.
|
public static final Clock SYSTEM_CLOCK