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++.
GetProcessTimes for 100-nanosecond resolution. If you want cycle times, use QueryProcessCycleTime in Vista and above.
GetProcessTimes
QueryProcessCycleTime
1.4m articles
1.4m replys
5 comments
57.0k users