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, toStringpublic final void addData(long time)
public final void sample()
sample in interface Metersample in class AbstractMeterpublic final double calculate()
AbstractMetercalculate in interface Metercalculate in class AbstractMeter