public final class AverageTimeMeter extends AbstractMeter
Constructor and Description |
---|
AverageTimeMeter(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
void |
addData(long time) |
double |
calculate()
Calculate the current value based on the previous sample().
|
void |
sample()
Return the probe's next sample.
|
getName, peek, toString
public final void addData(long time)
public final void sample()
sample
in interface Meter
sample
in class AbstractMeter
public final double calculate()
AbstractMeter
calculate
in interface Meter
calculate
in class AbstractMeter