Alexandre Julliard : ntdll: Use the monotonic counter for NtGetTickCount.
Module: wine Branch: master Commit: 34a1426fc3e75f87a772ab52a12b3209ab2da70a URL: http://source.winehq.org/git/wine.git/?a=commit;h=34a1426fc3e75f87a772ab52a1... Author: Alexandre Julliard <julliard(a)winehq.org> Date: Fri Jan 25 17:28:28 2013 +0100 ntdll: Use the monotonic counter for NtGetTickCount. --- dlls/ntdll/time.c | 5 +---- 1 files changed, 1 insertions(+), 4 deletions(-) diff --git a/dlls/ntdll/time.c b/dlls/ntdll/time.c index d3f4dab..2b810d4 100644 --- a/dlls/ntdll/time.c +++ b/dlls/ntdll/time.c @@ -492,10 +492,7 @@ NTSTATUS WINAPI NtQueryPerformanceCounter( LARGE_INTEGER *counter, LARGE_INTEGER */ ULONG WINAPI NtGetTickCount(void) { - LARGE_INTEGER now; - - NtQuerySystemTime( &now ); - return (now.QuadPart - server_start_time) / 10000; + return monotonic_counter() / TICKSPERMSEC; } /* calculate the mday of dst change date, so that for instance Sun 5 Oct 2007
participants (1)
-
Alexandre Julliard