com.commsen.stopwatch
Class Meter

java.lang.Object
  extended by com.commsen.stopwatch.Meter

public class Meter
extends java.lang.Object

Simple class to wrap basic stopwatch methods. The only reason this class exists is to make happy those developers who prefer

 .....
 Meter meter = Stopwatch.startMeter("group", "label");
 // some code to be measured
 meter.stop();
 ...
 
over
 .....
 long swId = Stopwatch.start("group", "label");
 // some code to be measured
 Stopwatch.stop(swId);
 ...
 
although it does exactly the same thing.

Since:
0.4
Author:
Milen Dyankov

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

stop

public void stop()
Simply forwards to Stopwatch.stop(long)


cancel

public void cancel()
Simply forwards to Stopwatch.skip(long)



Copyright © 2006-2008 Commsen International. All Rights Reserved.