|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 |
|
StopWatch(Date startTimestamp)
Starts the stop watch from the given timestamp |
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(Date startTimestamp)
public StopWatch(boolean started)
started
- whether it should start immediatelyMethod 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 |