DWORD dwStart = GetTickCount(); DWORD GetTimeElapsed(void){ return GetTickCount() - dwStart; } void ResetTimer(void){ dwStart = GetTickCount(); }