Is it possible to know the CPU usage of a running/idle process programatically (in any language) in Windows?
Asked
Active
Viewed 598 times
2 Answers
2
If you don't care on support old Windows versions (earlier than Windows XP SP1) you could use GetSystemTimes Win32 API function.
Otherwise you have to use Performance Counters.

Rost
- 8,779
- 28
- 50