|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectStopwatch
public class Stopwatch
General purpose Stopwatch class for timing code execution
Field Summary | |
---|---|
private boolean |
running
|
private long |
startTime
|
private long |
stopTime
|
Constructor Summary | |
---|---|
Stopwatch()
|
Method Summary | |
---|---|
(package private) long |
getElapsedTime()
Get the elapsed time in ms |
(package private) Stopwatch |
reset()
Reset the stopwatch |
(package private) Stopwatch |
start()
Start the stopwatch |
(package private) Stopwatch |
stop()
Stop the watch |
java.lang.String |
toString()
Provide a string representation of the stopwatch object |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private long startTime
private long stopTime
private boolean running
Constructor Detail |
---|
public Stopwatch()
Method Detail |
---|
Stopwatch start()
Stopwatch stop()
long getElapsedTime()
Stopwatch reset()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |