[Bug 7710] QueryPerformanceCounter should be independent of system time

wine-bugs at winehq.org wine-bugs at winehq.org
Fri Aug 10 14:20:35 CDT 2007


http://bugs.winehq.org/show_bug.cgi?id=7710


Piotr Pawlow <pp at siedziba.pl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
Attachment #5347 is|0                           |1
           obsolete|                            |
Attachment #5348 is|0                           |1
           obsolete|                            |




--- Comment #6 from Piotr Pawlow <pp at siedziba.pl>  2007-03-14 17:19:30 ---
Looks like LiveForSpeed uses GetTickCount. Works perfectly on my Linux system
after rewriting NtGetTickCount in dlls/ntdll/time.c to use
clock_gettime(CLOCK_MONOTONIC,...) like this:

ULONG WINAPI NtGetTickCount(void)
{
    struct timespec current_time;

    clock_gettime(CLOCK_MONOTONIC, &current_time);
    return current_time.tv_sec * 1000 +
           current_time.tv_nsec / 1000000;
}

--- Comment #7 from Piotr Pawlow <pp at siedziba.pl>  2007-03-14 17:23:07 ---
Created an attachment (id=5356)
 --> (http://bugs.winehq.org/attachment.cgi?id=5356)
test case

Test case updated to check GetTickCount too.

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list