Home | Info | Community | Development | myReactOS | Contact Us
Definition at line 145 of file sysinfo.c.
Referenced by NdisGetCurrentProcessorCpuUsage().
{ PKPRCB Prcb; ULONG TotalTime; ULONGLONG ScaledIdle; Prcb = KeGetCurrentPrcb(); ScaledIdle = Prcb->IdleThread->KernelTime * 100; TotalTime = Prcb->KernelTime + Prcb->UserTime; if (TotalTime != 0) *CpuUsage = (ULONG)(100 - (ScaledIdle / TotalTime)); else *CpuUsage = 0; }