public final class TimeMeter extends AbstractMeter implements TimeSensor
| Constructor and Description |
|---|
TimeMeter(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(long time)
Adds a time sample to the probe
|
double |
calculate()
Calculate the current value based on the previous sample().
|
void |
sample()
Return the probe's next sample.
|
getName, peek, toStringpublic final void add(long time)
TimeSensoradd in interface TimeSensorpublic final void sample()
sample in interface Metersample in class AbstractMeterpublic final double calculate()
AbstractMetercalculate in interface Metercalculate in class AbstractMeter