ch.bind.philib.util
Class Counter
java.lang.Object
ch.bind.philib.util.Counter
public final class Counter
- extends Object
A simple counter where values can be added or the whole counter be reset.
Counter
public Counter(String name)
getName
public String getName()
getNumCounts
public long getNumCounts()
getTotal
public long getTotal()
getMin
public long getMin()
getMax
public long getMax()
count
public void count(long value)
reset
public void reset()
toString
public String toString()
- Overrides:
toString in class Object
count
public void count(Counter counter)
Copyright © 2013. All Rights Reserved.