#include <TimerService.h>
Public Member Functions | |
CPUTimer (bool cpu=true) | |
double | delta () const |
void | reset () |
void | start () |
void | stop () |
Private Attributes | |
timespec | start_ |
timespec | stop_ |
const clockid_t | timer_ |
Definition at line 36 of file TimerService.h.
hlt::CPUTimer::CPUTimer | ( | bool | cpu = true | ) | [inline, explicit] |
Definition at line 38 of file TimerService.h.
References reset().
: timer_( cpu ? CLOCK_THREAD_CPUTIME_ID : CLOCK_REALTIME ) { reset(); }
double hlt::CPUTimer::delta | ( | ) | const [inline] |
Definition at line 64 of file TimerService.h.
Referenced by TimerService::postModule().
void hlt::CPUTimer::reset | ( | void | ) | [inline] |
Definition at line 44 of file TimerService.h.
Referenced by CPUTimer(), and TimerService::preModule().
void hlt::CPUTimer::start | ( | void | ) | [inline] |
Definition at line 51 of file TimerService.h.
References start_, and timer_.
Referenced by TimerService::preModule().
void hlt::CPUTimer::stop | ( | ) | [inline] |
Definition at line 57 of file TimerService.h.
Referenced by TimerService::postModule().
timespec hlt::CPUTimer::start_ [private] |
Definition at line 73 of file TimerService.h.
timespec hlt::CPUTimer::stop_ [private] |
Definition at line 74 of file TimerService.h.
const clockid_t hlt::CPUTimer::timer_ [private] |
Definition at line 72 of file TimerService.h.