Click here to Skip to main content
12,625,263 members (40,642 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C# Win7 CPU
Hi, how can I get my program to monitor all CPU usage from my computer.


Thanks in advanced.
Posted 6-Sep-12 13:05pm
Comments
   
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.
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

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
  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 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
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.161128.1 | Last Updated 28 Aug 2013
Copyright © CodeProject, 1999-2016
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