Florian Tobias Schandinat FlorianSchandinat@gmx.de writes:
- /* Convert: time counter -> PIT counter
* GetSystemTimeAsFileTime: 10000000 Hz
* PIT frequency: 1193182 Hz */
- val = (DWORD)(val - delta*1193182./10000000.) % (maxval + 1);
You should probably use QueryPerformanceCounter as it already uses the correct frequency.
Alexandre Julliard schrieb:
Florian Tobias Schandinat FlorianSchandinat@gmx.de writes:
- /* Convert: time counter -> PIT counter
* GetSystemTimeAsFileTime: 10000000 Hz
* PIT frequency: 1193182 Hz */
- val = (DWORD)(val - delta*1193182./10000000.) % (maxval + 1);
You should probably use QueryPerformanceCounter as it already uses the correct frequency.
Thanks, will change it and resend the patch with some minor changes.