45 #ifndef CFrequencyCounterH 46 #define CFrequencyCounterH 119 double signal(
const unsigned int a_numEvents = 1);
cFrequencyCounter(const double a_timePeriod=1.0)
Constructor of cFrequencyCounter.
Definition: CFrequencyCounter.cpp:59
Implements a high precision clock.
double getFrequency()
This method returns the most recent estimated frequency value in Hertz.
Definition: CFrequencyCounter.h:116
unsigned int m_counter
Event counter.
Definition: CFrequencyCounter.h:135
virtual ~cFrequencyCounter()
Destructor of cFrequencyCounter.
Definition: CFrequencyCounter.h:97
This class implements a high precision clock.
Definition: CPrecisionClock.h:85
double m_frequency
Estimated frequency value in Hertz.
Definition: CFrequencyCounter.h:132
void setTimePeriod(const double &a_timePeriod)
This method sets the time period in seconds.
Definition: CFrequencyCounter.cpp:138
This class implements a frequency counter.
Definition: CFrequencyCounter.h:85
void reset()
This method resets the frequency counter to zero.
Definition: CFrequencyCounter.cpp:85
double signal(const unsigned int a_numEvents=1)
This method signals the frequency counter of a one or more events.
Definition: CFrequencyCounter.cpp:107
double getTimeoutPeriodSeconds() const
This method reads the programmed timeout period is seconds.
Definition: CPrecisionClock.h:125
cPrecisionClock m_clock
High precision clock.
Definition: CFrequencyCounter.h:129
Definition: CAudioBuffer.cpp:56
double getTimePeriod() const
This method returns the time period in seconds.
Definition: CFrequencyCounter.h:113