aleph.meter
Class Counter

java.lang.Object
  |
  +--aleph.meter.Meter
        |
        +--aleph.meter.Counter

public class Counter
extends Meter

Keep track of the number of times some event has occurred.


Constructor Summary
Counter(java.lang.String label)
           
 
Method Summary
 void add(long i)
          Add to this event.
 void inc()
          Increment count for this event.
 java.lang.String toString()
           
 
Methods inherited from class aleph.meter.Meter
report
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Counter

public Counter(java.lang.String label)
Method Detail

inc

public void inc()
Increment count for this event.

add

public void add(long i)
Add to this event.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object