$search
CPU Timer Class. More...
#include <timercpu.h>
Public Member Functions | |
long long | getTSC (int bits) |
Get current CPU time stamp. | |
float | read () |
Read execution time in ms. | |
TimerCPU (float freq_) | |
Constructor. | |
Public Attributes | |
long long | beg_clock |
Start time. | |
float | freq |
clock frequency in MHz | |
Static Private Attributes | |
static const int | bits = 10 |
CPU Timer Class.
Definition at line 38 of file timercpu.h.
TimerCPU::TimerCPU | ( | float | freq_ | ) | [inline] |
Constructor.
Sets start time
freq_ | clock frequency in MHz |
Definition at line 50 of file timercpu.h.
long long TimerCPU::getTSC | ( | int | bits | ) | [inline] |
Get current CPU time stamp.
Definition at line 54 of file timercpu.h.
float TimerCPU::read | ( | ) | [inline] |
Read execution time in ms.
Sets end time and computes difference in ms
Definition at line 64 of file timercpu.h.
long long TimerCPU::beg_clock |
Start time.
Definition at line 43 of file timercpu.h.
const int TimerCPU::bits = 10 [static, private] |
Definition at line 40 of file timercpu.h.
float TimerCPU::freq |
clock frequency in MHz
Definition at line 45 of file timercpu.h.