20 _averagetime(averagetime)
file contains declaration of class calculating a rate
double _rate
the current rate
double _counts
a counter that will increase with each call to count
const double _averagetime
time constant with which the rate will decrease
double calculateRate()
retrieve the rate
void count(double increase=1.)
increase the counts
Ratemeter(const double averagetime=1)
constuctor
QMutex _mutex
mutex to make function counting reentrant
QTime _time
the time to stop the timeinterval