Appropå stora tal. Pedagogisk knorr, ta reda på. Från msdn: >It is limited to the resolution of the system timer. > När bottnar den, börjar den om från noll då ?När bottnar GetTickCount ?
API GetTickCount lämnar ms sedan datorn startades.
När bottnar den, börjar den om från noll då ?Sv: När bottnar GetTickCount ?
The GetTickCount function retrieves the number of milliseconds that have elapsed since the system was started. It is limited to the resolution of the system timer. To obtain the system timer resolution, use the GetSystemTimeAdjustment function.
DWORD GetTickCount(void);
Parameters
This function has no parameters.
Return Values
The return value is the number of milliseconds that have elapsed since the system was started.
Remarks
The elapsed time is stored as a DWORD value. Therefore, the time will wrap around to zero if the system is run continuously for 49.7 days.
If you need a higher resolution timer, use a multimedia timer or a high-resolution timer.
To obtain the time elapsed since the computer was started, retrieve the System Up Time counter in the performance data in the registry key HKEY_PERFORMANCE_DATA. The value returned is an 8-byte value. For more information, see Performance Monitoring.Sv: När bottnar GetTickCount ?
hmmmm! det betyder tydligen att man får max 56 ms noggrannhet eller ?Sv: När bottnar GetTickCount ?
Numer börjar den om, men Windows 98 kraschade på sin tid.