public class JniCpuStat.CpuActiveProbe extends AbstractMeter
Modifier and Type | Method and Description |
---|---|
double |
calculate()
Calculate the current value based on the previous sample().
|
double |
peek()
Returns the current value.
|
void |
sample()
Sample the meter, resetting any counters for the next sample.
|
getName, toString
public void sample()
AbstractMeter
sample
in interface Meter
sample
in class AbstractMeter
public double calculate()
AbstractMeter
calculate
in interface Meter
calculate
in class AbstractMeter
public double peek()
AbstractMeter
peek
in interface Meter
peek
in class AbstractMeter