Commit 4f6db78c authored by Jörg Höhle's avatar Jörg Höhle Committed by Alexandre Julliard

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

parent 9aa8300f
......@@ -605,9 +605,9 @@ static DWORD WINAPI timer_callback_wrapper(LPVOID p)
static inline ULONGLONG queue_current_time(void)
{
LARGE_INTEGER now;
NtQuerySystemTime(&now);
return now.QuadPart / 10000;
LARGE_INTEGER now, freq;
NtQueryPerformanceCounter(&now, &freq);
return now.QuadPart * 1000 / freq.QuadPart;
}
static void queue_add_timer(struct queue_timer *t, ULONGLONG time,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment