|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.camel.util.StopWatch
public final class StopWatch
A very simple stop watch.
This implementation is not thread safe and can only time one task at any given time.
| Constructor Summary | |
|---|---|
StopWatch()
Starts the stop watch |
|
StopWatch(boolean started)
Creates the stop watch |
|
| Method Summary | |
|---|---|
void |
restart()
Starts or restarts the stop watch |
long |
stop()
Stops the stop watch |
long |
taken()
Returns the time taken in millis. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StopWatch()
public StopWatch(boolean started)
started - whether it should start immediately| Method Detail |
|---|
public void restart()
public long stop()
public long taken()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||