Public Member Functions | |
| class_timers () | |
| ~class_timers () | |
| void | start_timer_thread () |
| void | resume_timer_thread () |
| void | stop_timer_thread () |
| void | set_timer (TIMEVAL value) |
| TIMEVAL | get_elapsed_time () |
Private Member Functions | |
| TIMEVAL | get_timer () const |
Static Private Member Functions | |
| static DWORD WINAPI | timer_loop_thread_proc (void *arg) |
Private Attributes | |
| TIMEVAL | m_last_occured_alarm_time |
| volatile TIMEVAL | m_last_alarm_set_time |
| HANDLE | m_timer_thread |
| volatile bool | m_continue_timer_loop |
| bool | m_use_hi_res_timer |
| double | m_counts_per_usec |
Definition at line 94 of file timers_win32.cpp.
| class_timers::class_timers | ( | ) |
Definition at line 116 of file timers_win32.cpp.
References m_counts_per_usec, and m_use_hi_res_timer.
| class_timers::~class_timers | ( | ) |
Definition at line 133 of file timers_win32.cpp.
References stop_timer_thread().
Here is the call graph for this function:

| void class_timers::start_timer_thread | ( | ) |
Definition at line 173 of file timers_win32.cpp.
References get_timer(), m_last_alarm_set_time, m_last_occured_alarm_time, m_timer_thread, timer_loop_thread_proc(), and TIMEVAL_MAX.
Referenced by StartTimerLoop().
Here is the call graph for this function:

| void class_timers::resume_timer_thread | ( | ) |
Definition at line 184 of file timers_win32.cpp.
References m_continue_timer_loop, and m_timer_thread.
Referenced by StartTimerLoop().
| void class_timers::stop_timer_thread | ( | ) |
Definition at line 193 of file timers_win32.cpp.
References m_continue_timer_loop, and m_timer_thread.
Referenced by StopTimerLoop(), and ~class_timers().
| void class_timers::set_timer | ( | TIMEVAL | value | ) |
Definition at line 204 of file timers_win32.cpp.
References get_timer(), m_last_alarm_set_time, and TIMEVAL_MAX.
Referenced by setTimer().
Here is the call graph for this function:

| TIMEVAL class_timers::get_elapsed_time | ( | ) |
Definition at line 210 of file timers_win32.cpp.
References get_timer(), and m_last_occured_alarm_time.
Referenced by getElapsedTime().
Here is the call graph for this function:

| TIMEVAL class_timers::get_timer | ( | ) | const [private] |
Definition at line 139 of file timers_win32.cpp.
References m_counts_per_usec, m_use_hi_res_timer, and TIMEVAL.
Referenced by get_elapsed_time(), set_timer(), start_timer_thread(), and timer_loop_thread_proc().
| DWORD WINAPI class_timers::timer_loop_thread_proc | ( | void * | arg | ) | [static, private] |
Definition at line 151 of file timers_win32.cpp.
References EnterMutex(), get_timer(), LeaveMutex(), m_continue_timer_loop, m_last_alarm_set_time, m_last_occured_alarm_time, TimeDispatch(), TIMEVAL, and TIMEVAL_MAX.
Referenced by start_timer_thread().
Here is the call graph for this function:

TIMEVAL class_timers::m_last_occured_alarm_time [private] |
Definition at line 108 of file timers_win32.cpp.
Referenced by get_elapsed_time(), start_timer_thread(), and timer_loop_thread_proc().
volatile TIMEVAL class_timers::m_last_alarm_set_time [private] |
Definition at line 109 of file timers_win32.cpp.
Referenced by set_timer(), start_timer_thread(), and timer_loop_thread_proc().
HANDLE class_timers::m_timer_thread [private] |
Definition at line 110 of file timers_win32.cpp.
Referenced by resume_timer_thread(), start_timer_thread(), and stop_timer_thread().
volatile bool class_timers::m_continue_timer_loop [private] |
Definition at line 111 of file timers_win32.cpp.
Referenced by resume_timer_thread(), stop_timer_thread(), and timer_loop_thread_proc().
bool class_timers::m_use_hi_res_timer [private] |
double class_timers::m_counts_per_usec [private] |
1.5.1