| Constructor and Description |
|---|
ManualClock(long init)
Construct a new clock setting the current time to
init. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
long |
now()
Returns the number of milliseconds since the epoch.
|
void |
set(long t)
Update the current time to
t. |
public ManualClock(long init)
init.init - Number of milliseconds to use as the initial time.public void set(long t)
t.t - Number of milliseconds to use for the current time.public long now()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object