|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectde.unidu.is.util.StopWatch
A simple stop watch.
| Constructor Summary | |
StopWatch()
Creates a new stop watch. |
|
StopWatch(java.lang.String name)
Creates a new stop watch. |
|
| Method Summary | |
java.lang.String |
asComplete()
Deprecated. Use toString() instead |
java.lang.String |
asMillis()
Returns a string representation of the time difference (in millis). |
java.lang.String |
asMins()
Returns a string representation of the time difference (in minutes). |
java.lang.String |
asSecs()
Returns a string representation of the time difference (in seconds). |
long |
getAverageMillis()
Returns the average time difference in millis. |
long |
getTotalMillis()
Returns the total (accumulated) time difference in millis. |
void |
reset()
Resets the watch. |
void |
start()
Starts the watch. |
void |
stop()
Stops the watch. |
java.lang.String |
toString()
Returns a string representation of the time difference (in minutes). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public StopWatch()
public StopWatch(java.lang.String name)
name - name of the stop watch| Method Detail |
public void start()
public void stop()
public void reset()
public long getTotalMillis()
public long getAverageMillis()
public java.lang.String toString()
public java.lang.String asComplete()
public java.lang.String asMins()
public java.lang.String asSecs()
public java.lang.String asMillis()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||