Re: ntdll: Change NtQuerySystemInformation to return 100ns ticks for SYSTEM_PROCESSOR_PERFORMANCE_INFORMATION info class (try 2)
10 Dec
2010
10 Dec
'10
3:49 p.m.
Louis Lenders <xerox_xerox2000(a)yahoo.co.uk> writes:
diff --git a/dlls/ntdll/nt.c b/dlls/ntdll/nt.c index 7ad56e4..d9f0398 100644 --- a/dlls/ntdll/nt.c +++ b/dlls/ntdll/nt.c @@ -64,6 +64,8 @@ #include <mach/vm_map.h> #endif
+#define USER_HZ_TO_TICKSPERSEC(x) (ULONGLONG)10000000 * x / sysconf(_SC_CLK_TCK)
Don't hide sysconf in a macro, call it just once where needed. -- Alexandre Julliard julliard(a)winehq.org
5571
Age (days ago)
5571
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard