ntdll: Use the monotonic time counter also for timer queues.

This commit is contained in:
Jörg Höhle 2013-02-05 18:01:04 +01:00 committed by Alexandre Julliard
parent 9aa8300f99
commit 4f6db78ca0
1 changed files with 3 additions and 3 deletions

View File

@ -605,9 +605,9 @@ static DWORD WINAPI timer_callback_wrapper(LPVOID p)
static inline ULONGLONG queue_current_time(void) static inline ULONGLONG queue_current_time(void)
{ {
LARGE_INTEGER now; LARGE_INTEGER now, freq;
NtQuerySystemTime(&now); NtQueryPerformanceCounter(&now, &freq);
return now.QuadPart / 10000; return now.QuadPart * 1000 / freq.QuadPart;
} }
static void queue_add_timer(struct queue_timer *t, ULONGLONG time, static void queue_add_timer(struct queue_timer *t, ULONGLONG time,