Пример #1
0
S64 Timer::getElapsedTicks(void)
{
    S64 curr = queryTicks();
    if (m_startTicks == -1)
        m_startTicks = curr;
    return curr - m_startTicks;
}
 void            start           (void)                  {
     m_startTicks = queryTicks();
 }
Пример #3
0
 explicit inline     Timer           (bool started = false)  : m_startTicks((started) ? queryTicks() : -1), m_totalTicks(0) {}