Use timeGetTime() (more regular) instead of GetTickCount().