|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.generationjava.test.StopWatch
Useful when doing timings in a test.
| Constructor Summary | |
StopWatch()
|
|
| Method Summary | |
long |
getTime()
Get the time on the stopwatch. |
java.lang.String |
getTimeString()
Get the time gap as a String. |
static void |
main(java.lang.String[] strs)
|
void |
reset()
Reset the stopwatch. |
void |
split()
Split the time. |
void |
start()
Start the stopwatch. |
void |
stop()
Stop the stopwatch. |
java.lang.String |
toString()
|
void |
unsplit()
Remove a split. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public StopWatch()
| Method Detail |
public static void main(java.lang.String[] strs)
public void start()
public void stop()
public void reset()
public void split()
public void unsplit()
public long getTime()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getTimeString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||