|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.commsen.stopwatch.Meter
public class Meter
Simple class to wrap basic stopwatch methods. The only reason this class exists is to make happy
those developers who prefer
over
.....
Meter meter = Stopwatch.startMeter("group", "label");
// some code to be measured
meter.stop();
...
although it does exactly the same thing.
.....
long swId = Stopwatch.start("group", "label");
// some code to be measured
Stopwatch.stop(swId);
...
Method Summary | |
---|---|
void |
cancel()
Simply forwards to Stopwatch.skip(long) |
void |
stop()
Simply forwards to Stopwatch.stop(long) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void stop()
Stopwatch.stop(long)
public void cancel()
Stopwatch.skip(long)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |