Package org.apache.activemq.util
Class StopWatch
- java.lang.Object
-
- org.apache.activemq.util.StopWatch
-
public final class StopWatch extends Object
A very simple stop watch. This implementation is not thread safe and can only time one task at any given time.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
restart()
Starts or restarts the stop watchlong
stop()
Stops the stop watchlong
taken()
Returns the time taken in milliseconds.
-