// wdm.h
ULONG64 KeQueryTotalCycleTimeThread(
[in, out] PKTHREAD Thread,
[out] PULONG64 CycleTimeStamp
);
View the official Windows Driver Kit DDI referenceNo description available.
The KeQueryTotalCycleTimeThread routine returns the accumulated cycle time for the specified thread.
Thread [in, out]A pointer to a dispatcher object of type KTHREAD.
CycleTimeStamp [out]A pointer to the cycle counter value at the time of the query.
The accumulated cycle time for the thread.