Hi,
Is there any way to find the CPU time which is displayed in Idle Process ?
Regards,
Kevin
How to get the CPU time?
Re: How to get the CPU time?
Hi Kevin,
You can do it as follows.
BR,
Neo
You can do it as follows.
Code: Select all
NTSTATUS hStatus;
SYSTEM_PERFORMANCE_INFORMATION sysPInfo;
hStatus = NtQuerySystemInformation(SystemPerformanceInformation, &sysPInfo, sizeof(sysPInfo), NULL);
if (hStatus != NO_ERROR){
// Your code here
}
Neo