hal: Implement KeQueryPerformanceCounter.

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Michael Müller 2018-02-27 18:29:41 -06:00 committed by Alexandre Julliard
parent 58bb7b39fc
commit 02a5071674
2 changed files with 11 additions and 1 deletions

View File

@ -177,3 +177,13 @@ void WINAPI WRITE_PORT_ULONG(ULONG *port, ULONG value)
{
FIXME("(%p %d) stub!\n", port, value);
}
ULONGLONG WINAPI KeQueryPerformanceCounter(LARGE_INTEGER *frequency)
{
LARGE_INTEGER counter;
TRACE("(%p)\n", frequency);
NtQueryPerformanceCounter(&counter, frequency);
return counter.QuadPart;
}

View File

@ -72,7 +72,7 @@
@ stub KeFlushWriteBuffer
@ stdcall KeGetCurrentIrql()
@ stub KeLowerIrql
@ stub KeQueryPerformanceCounter
@ stdcall -ret64 KeQueryPerformanceCounter(ptr)
@ stub KeRaiseIrql
@ stub KeRaiseIrqlToDpcLevel
@ stub KeRaiseIrqlToSynchLevel