|
The GetTickCount function retrieves the number of milliseconds that have elapsed since Windows was started.
DWORD GetTickCount(VOID)
Parameters
This function has no parameters.
Return Value
If the function succeeds, the return value is the number of milliseconds that have elapsed since Windows was started.
Remarks
The GetTickCount function is identical to the GetCurrentTime function. Applications should use the GetTickCount function because its name matches more closely what the function does.
The GetTickCount and GetMessageTime functions return different times. GetMessageTime returns the Windows time when the given message was created, not the current Windows time.
The internal timer wraps around to zero if Windows is run continuously for approximately 49.7 days.
В двух словах - эта функция возвращает число 55 мс тиков таймера, т.е. прочитав текущее состояние, циклимся на приращение его на 10 и это и будет задержка на ~ 500 мс.
E-mail: info@telesys.ru