public class TimerAverage
extends java.lang.Object
Constructor and Description |
---|
TimerAverage() |
TimerAverage(long savePeriodMs) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(long time,
double value)
Add a new entry and check if save should be done.
|
double |
getAverageAndReset(long time) |