|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jcoderz.commons.statistics.Counter
org.jcoderz.commons.statistics.TimedCounter
public class TimedCounter
TODO Write javadoc!
| Constructor Summary | |
|---|---|
TimedCounter(String name)
Constructor. |
|
| Method Summary | |
|---|---|
long |
getDuration()
Returns the amount of time this Counter was running. |
double |
getFrequency()
Returns the frequency of this counter, i.e. getCount() / duration. |
void |
reset()
Resets the statistical entity that implements this interface. |
void |
start()
Start this counter's timer. |
void |
stop()
Stop this counter's timer. |
String |
toString()
|
| Methods inherited from class org.jcoderz.commons.statistics.Counter |
|---|
decrement, getCount, getName, increment |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TimedCounter(String name)
name - the name of this counter| Method Detail |
|---|
public void start()
public void stop()
public void reset()
reset in interface Resettablereset in class Counterpublic long getDuration()
public double getFrequency()
public String toString()
toString in class Counter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||