Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# Win7 cpu WinForm
Hi, how can I get my program to monitor all CPU usage from my computer.
 

Thanks in advanced.
Posted 6-Sep-12 12:05pm
Comments
Sergey Alexandrovich Kryukov at 6-Sep-12 18:29pm
   
Total, no kidding?.. :-)
--SA
MR. AngelMendez at 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.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Total CPU usage? I can tell you right away — 100% Wink | ;-)
 
[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
  Permalink  
v2
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

Is there any methods otherthan performance counter....?
  Permalink  
Comments
ThePhantomUpvoter at 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)

  Print Answers RSS
0 OriginalGriff 6,651
1 Sergey Alexandrovich Kryukov 6,400
2 CPallini 5,230
3 George Jonsson 3,574
4 Gihan Liyanage 2,542


Advertise | Privacy | Mobile
Web04 | 2.8.140921.1 | Last Updated 28 Aug 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100