public class Clock extends Object
| Constructor and Description |
|---|
Clock()
Creates a new clock and resets it.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getTimeMicroseconds()
Returns the time in microseconds since the last call to reset or since the Clock was created.
|
long |
getTimeMilliseconds()
Returns the time in milliseconds since the last call to reset or since the Clock was created.
|
void |
reset()
Resets clock by setting start time to current.
|
public void reset()
public long getTimeMilliseconds()
public long getTimeMicroseconds()