Definition at line 27 of file CPrecisionTimer.hpp.
Exponent::Testing::CPrecisionTimer::CPrecisionTimer | ( | ) |
Construction
virtual Exponent::Testing::CPrecisionTimer::~CPrecisionTimer | ( | ) | [virtual] |
Destruction
double Exponent::Testing::CPrecisionTimer::getCPUUsage | ( | const long | numberOfSamples | ) |
Get the % of CPU being used by a function
numberOfSamples | The number of samples processed |
double | The % of CPU being used (0 : 1) |
double Exponent::Testing::CPrecisionTimer::getProcessorTime | ( | ) |
Get the elapsed time since timer started in seconds
double | The elapsed time in seconds |
static void Exponent::Testing::CPrecisionTimer::initialise | ( | ) | [static] |
Intialise - Call this once per aplication instance
void Exponent::Testing::CPrecisionTimer::setSampleRate | ( | const double | sampleRate | ) | [inline] |
Set the sample rate of the system
sampleRate | the samplerate to use |
Definition at line 64 of file CPrecisionTimer.hpp.
References m_sampleRate.
void Exponent::Testing::CPrecisionTimer::startTimer | ( | ) |
Call this to start timing at the beginning of your process block
bool Exponent::Testing::CPrecisionTimer::CPRECISION_TIMER_INITIALISED [static, protected] |
Are we initialised
Definition at line 77 of file CPrecisionTimer.hpp.
double Exponent::Testing::CPrecisionTimer::CPRECISION_TIMER_INV_FREQUENCY [static, protected] |
Sampling frequency
Definition at line 78 of file CPrecisionTimer.hpp.
uint64 Exponent::Testing::CPrecisionTimer::m_counter [protected] |
Timer count
Definition at line 82 of file CPrecisionTimer.hpp.
double Exponent::Testing::CPrecisionTimer::m_sampleRate [protected] |
Samplerate of the signal
Definition at line 83 of file CPrecisionTimer.hpp.
Referenced by setSampleRate().