// wdm.h
ULONG KeQueryRuntimeThread(
[in] PKTHREAD Thread,
[out] PULONG UserTime
);
View the official Windows Driver Kit DDI referenceNo description available.
The KeQueryRuntimeThread routine reports the accumulated kernel-mode and user-mode run time of a thread, in clock ticks.
Thread [in]Pointer to a dispatcher object of type KTHREAD.
UserTime [out]Pointer to the memory location where KeQueryRuntimeThread returns the accumulated user-mode run time of the current thread, in clock ticks.
KeQueryRuntimeThread returns the accumulated kernel-mode run time of the current thread, in clock ticks.