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