9 #ifndef _CASS_RATEMETER_H_
10 #define _CASS_RATEMETER_H_
14 #include <QtCore/QTime>
15 #include <QtCore/QMutex>
54 void count(
double increase=1.);
class calculating a rate in Hz.
double _rate
the current rate
double _counts
a counter that will increase with each call to count
file contains global definitions for project cass
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