|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.pf.util.StopWatch
public class StopWatch
A simple stop watch to measure the time between a start and a stop point.
| Constructor Summary | |
|---|---|
StopWatch()
Initialize the new instance with default values. |
|
| Method Summary | |
|---|---|
long |
getDuration()
Returns the duration between start and stop in milliseconds. |
void |
reset()
Resets the watch to a state before it gets started |
long |
start()
Starts the stop watch. |
long |
stop()
Stops the stop watch. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StopWatch()
| Method Detail |
|---|
public long start()
public long stop()
public long getDuration()
stop() has not been called yet it returns the duration from
start to now.
public void reset()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||