Click here to Skip to main content
15,887,676 members
Please Sign up or sign in to vote.
4.67/5 (2 votes)
See more:
Hi, how can I get my program to monitor all CPU usage from my computer.


Thanks in advanced.
Posted
Comments
Sergey Alexandrovich Kryukov 6-Sep-12 18:29pm    
Total, no kidding?.. :-)
--SA
MR. AngelMendez 6-Sep-12 20:34pm    
thanks all, I see you guys are amused by the way I ask this question :) I wanted to make sure I get full CPU usage rather than just the app.

Total CPU usage? I can tell you right away — 100% ;-)

[EDIT]

And if you need it not total, but per process, you can use the class from System.Diagnostics.PerformanceCounter:
http://stackoverflow.com/questions/278071/how-to-get-the-cpu-usage-in-c[^]

Good luck,
—SA
 
Share this answer
 
v2
Is there any methods otherthan performance counter....?
 
Share this answer
 
Comments
[no name] 28-Aug-13 7:53am    
How, exactly, is this any kind of a solution to this year old already answered question?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900