#include <Timer.h>
Public Member Functions | |
Timer () | |
~Timer () | |
void | start () |
void | stop () |
operator double () const | |
operator float () const | |
const bool | IsRunning () const |
Private Member Functions | |
const double | GetCurrentClock () const |
const double | GetStartTime () const |
const double | GetCurrentTime () const |
Private Attributes | |
double | m_dStart |
double | m_dCurrent |
bool | m_bRunning |
Static Private Attributes | |
static double | s_dSecondsPerTick = 0.0 |
Timer::Timer | ( | ) | [inline] |
References s_dSecondsPerTick, and start().
Timer::~Timer | ( | ) | [inline] |
const double Timer::GetCurrentClock | ( | ) | const [inline, private] |
Referenced by GetCurrentTime().
const double Timer::GetCurrentTime | ( | ) | const [inline, private] |
References GetCurrentClock(), m_bRunning, m_dCurrent, and s_dSecondsPerTick.
Referenced by operator double(), operator float(), start(), and stop().
const double Timer::GetStartTime | ( | ) | const [inline, private] |
const bool Timer::IsRunning | ( | ) | const [inline] |
References m_bRunning.
Timer::operator double | ( | ) | const [inline] |
References GetCurrentTime(), and GetStartTime().
Timer::operator float | ( | ) | const [inline] |
References GetCurrentTime(), and GetStartTime().
void Timer::start | ( | ) | [inline] |
References GetCurrentTime(), m_bRunning, m_dCurrent, and m_dStart.
Referenced by GLWidget::paintGL(), and Timer().
void Timer::stop | ( | ) | [inline] |
References GetCurrentTime(), m_bRunning, and m_dCurrent.
bool Timer::m_bRunning [private] |
Referenced by GetCurrentTime(), IsRunning(), start(), and stop().
double Timer::m_dCurrent [private] |
Referenced by GetCurrentTime(), start(), and stop().
double Timer::m_dStart [private] |
Referenced by GetStartTime(), and start().
double Timer::s_dSecondsPerTick = 0.0 [static, private] |
Referenced by GetCurrentTime(), and Timer().