bool Time::ResetTimer(const UInt& _uTimerID, float& _fElapsedMilliseconds) { TimerPtr pTimer = GetTimer(_uTimerID); bool bResult = (NULL != pTimer); if (false != bResult) { bResult = pTimer->GetElapsedTime(_fElapsedMilliseconds) && pTimer->Reset(); } return bResult; }
bool Time::GetElapsedTime(const UInt& _uTimerID, float& _fElapsedMilliseconds) { TimerPtr pTimer = GetTimer(_uTimerID); bool bResult = (NULL != pTimer) && (false != pTimer->GetElapsedTime(_fElapsedMilliseconds)); return bResult; }