ntdll: Use the monotonic time counter also for timer queues.
This commit is contained in:
parent
9aa8300f99
commit
4f6db78ca0
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue