From 28553fa8a79fe1dbc0c2cc15a1672d88bb7d1e66 Mon Sep 17 00:00:00 2001 From: Detlef Riekenberg Date: Mon, 7 Apr 2008 21:15:46 +0200 Subject: [PATCH] ntoskrnl.exe: Implement KeQueryInterruptTime. --- dlls/ntoskrnl.exe/ntoskrnl.c | 15 +++++++++++++++ dlls/ntoskrnl.exe/ntoskrnl.exe.spec | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/dlls/ntoskrnl.exe/ntoskrnl.c b/dlls/ntoskrnl.exe/ntoskrnl.c index cd155f7f9ae..cf1603adf8c 100644 --- a/dlls/ntoskrnl.exe/ntoskrnl.c +++ b/dlls/ntoskrnl.exe/ntoskrnl.c @@ -529,6 +529,21 @@ KAFFINITY WINAPI KeQueryActiveProcessors( void ) } +/********************************************************************** + * KeQueryInterruptTime (NTOSKRNL.EXE.@) + * + * Return the interrupt time count + * + */ +ULONGLONG WINAPI KeQueryInterruptTime( void ) +{ + LARGE_INTEGER totaltime; + + KeQueryTickCount(&totaltime); + return totaltime.QuadPart; +} + + /*********************************************************************** * KeQuerySystemTime (NTOSKRNL.EXE.@) */ diff --git a/dlls/ntoskrnl.exe/ntoskrnl.exe.spec b/dlls/ntoskrnl.exe/ntoskrnl.exe.spec index dbab0fa0c0f..3aef928fd51 100644 --- a/dlls/ntoskrnl.exe/ntoskrnl.exe.spec +++ b/dlls/ntoskrnl.exe/ntoskrnl.exe.spec @@ -570,7 +570,7 @@ @ stub KeProfileInterruptWithSource @ stub KePulseEvent @ stdcall KeQueryActiveProcessors() -@ stub KeQueryInterruptTime +@ stdcall KeQueryInterruptTime() @ stub KeQueryPriorityThread @ stub KeQueryRuntimeThread @ stdcall KeQuerySystemTime(ptr)