Write a StopwatchUtility
class that includes a startStop
method, a getTimeElapsed
method, and a reset
method. Think about what each of those behaviors means for the time that we're recording.
You can use the Java call System.currentTimeMillis()
to get the current time in milliseconds (expressed as a long
type). This time represents the number of milliseconds that have passed since Jan 1, 1970.
The final version of your stopwatch should be able to: