public class Clock extends Object
Constructor and Description |
---|
Clock()
Constructs a clock and starts it.
|
Modifier and Type | Method and Description |
---|---|
Time |
getElapsedTime()
Gets the elapsed time since the clock was created or last restarted.
|
Time |
restart()
Yields the elapsed time and restarts the clock.
|
public Time getElapsedTime()
public final Time restart()