public class RateProbe extends Object
Constructor and Description |
---|
RateProbe() |
Modifier and Type | Method and Description |
---|---|
long |
fire()
Fires the rate probe, and returns the elapsed time in nanoseconds since the last call.
|
RxGetter<Double> |
rateHzOver(long timespan,
TimeUnit unit)
Returns the average rate in hertz over the specified time period.
|
RxGetter<Double> |
rateHzOverNSamples(int n)
Returns the average rate in hertz over the last n samples.
|
public long fire()
public RxGetter<Double> rateHzOverNSamples(int n)