public class Stopwatch
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private long |
start |
Constructor and Description |
---|
Stopwatch()
Calls start.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getElapsedTime()
Get's the total elapsed time in the format H:mm:ss.SSS
|
long |
getElapsedTimeMillis()
Gets the total elapsed time in milliseconds.
|
void |
reset()
Just calls start, but I like writing reset better.
|
void |
start()
Starts and resets the Stopwatch.
|
public java.lang.String getElapsedTime()
public long getElapsedTimeMillis()
public void reset()
public void start()