public class Timer
extends java.lang.Object
Constructor and Description |
---|
Timer()
Makes a timer with the start time being the current nano time
|
Timer(long startTime)
Makes a timer with a custom start time.
|
Modifier and Type | Method and Description |
---|---|
long |
getTime()
Gets the amount of time elapsed.
|
void |
pause()
Pauses the timer
|
long |
stop()
Stops the timer
|
void |
unpause()
Unpause the timer
|