mirror of
https://github.com/reactos/wine.git
synced 2024-11-29 14:40:56 +00:00
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)
|
||||
{
|
||||
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,
|
||||
|
Loading…
Reference in New Issue
Block a user