Commit 474e8e0d authored by Brendan Shanks's avatar Brendan Shanks Committed by Alexandre Julliard

kernelbase: Implement QueryInterruptTime.

parent f9631c36
......@@ -1234,7 +1234,7 @@
@ stdcall QueryFullProcessImageNameW(ptr long ptr ptr)
# @ stub QueryIdleProcessorCycleTime
# @ stub QueryIdleProcessorCycleTimeEx
# @ stub QueryInterruptTime
@ stdcall QueryInterruptTime(ptr)
# @ stub QueryInterruptTimePrecise
@ stdcall QueryMemoryResourceNotification(ptr ptr)
# @ stub QueryOptionalDelayLoadedAPI
......
......@@ -205,6 +205,23 @@ ULONGLONG WINAPI DECLSPEC_HOTPATCH GetTickCount64(void)
}
/******************************************************************************
* QueryInterruptTime (kernelbase.@)
*/
void WINAPI DECLSPEC_HOTPATCH QueryInterruptTime( ULONGLONG *time )
{
ULONG high, low;
do
{
high = user_shared_data->InterruptTime.High1Time;
low = user_shared_data->InterruptTime.LowPart;
}
while (high != user_shared_data->InterruptTime.High2Time);
*time = (ULONGLONG)high << 32 | low;
}
/***********************************************************************
* Waits
***********************************************************************/
......
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