Game Accessibility Library logo SourceForge.net Logo
Game Accessibility Suite: CATTimeWarp::AdjustSaveTime
void CATTimeWarp::AdjustSaveTime ( LARGE_INTEGER *  lastPerf,
DWORD *  lastTick,
DWORD *  lastTime 
) [protected]

Adjusts the passed in value(s) according to speed, and saves off the real timer result and calculated result for the next query.

Parameters:
lastPerf On entry, should point to system's result from QueryPerformanceCounter. On return, set to scaled counter value.
lastTick On entry, should point to the system's result from GetTickCount(). On return, set to scaled tick count.
lastTime On entry, should point to the system's result from timeGetTime(). On return, set to scaled time value.
Note:
Null parameters will be ignored.

Definition at line 195 of file CATTimeWarp.cpp.

References fLastPerfCounter, fLastRealPerfCounter, fLastRealTickCount, fLastRealTimeGetTime, fLastTickCount, fLastTimeGetTime, fLock, fSpeed, CATCritSec::Release(), and CATCritSec::Wait().

Referenced by FixupQPC(), FixupTick(), and FixupTime().


Generated on Mon Feb 11 04:11:08 2008 for Game Accessibility Suite by doxygen 1.5.4