- start
Start the stopwatch.
This method starts a new timing session, clearing any previous values.
- <init>
Constructor.
- getTime
Get the time on the stopwatch in the specified TimeUnit.
This is either the time between the star
- stop
Stop the stopwatch.
This method ends a new timing session, allowing the time to be retrieved.
- reset
Resets the stopwatch. Stops it if need be.
This method clears the internal values to allow the ob
- toString
Gets a summary of the time that the stopwatch recorded as a string.
The format used is ISO 8601-l
- createStarted
Provides a started stopwatch for convenience.
- getNanoTime
Get the time on the stopwatch in nanoseconds.
This is either the time between the start and the m
- getSplitTime
Get the split time on the stopwatch.
This is the time between start and latest split.
- resume
Resume the stopwatch after a suspend.
This method resumes the watch after it was suspended. The w
- suspend
Suspend the stopwatch for later resumption.
This method suspends the watch until it is resumed. T
- split
Split the time.
This method sets the stop time of the watch to allow a time to be extracted.
The