Calculate total CPU usage

前端 未结 7 549
感动是毒
感动是毒 2020-12-18 15:55

What is best algorithm for calculating total CPU usage at a particular time during execution of a process.

I am working windows platform in C++.

7条回答
  •  醉话见心
    2020-12-18 16:22

    GetProcessTimes for 100-nanosecond resolution. If you want cycle times, use QueryProcessCycleTime in Vista and above.

提交回复
热议问题