- <init>
Constructs a new timer, initially not started. Use start() to start the timer.
- display
Prints the elapsed time on System.out
- elapsedTime
Same as seconds().
- minus
T = this - other; Constructs and returns a new timer which is the difference of
the receiver and the
- reset
Resets the timer.
- seconds
Returns the elapsed time in seconds; does not stop the timer, if started.
- start
Starts the timer.
- stop
Stops the timer. You can start it again later, if necessary.
- millis
Returns the elapsed time in milli seconds; does not stop the timer, if started.
- minutes
Returns the elapsed time in minutes; does not stop the timer, if started.
- nanos
Returns the elapsed time in nano seconds; does not stop the timer, if started.