tags:

views:

1180

answers:

3

How can I get a process' cpu usage percentage ala-Task Manager? I used the PerformanceCounter class but it's 'performance' is not optimal for the app that i'm doing. Is there an alternative method to do this?

Thanks!

+2  A: 

Check my answer to this quesiton:

How to get the CPU Usage C#

CMS
Could this question be considered a duplicate then?
lc
i've edited the question and added some more details.
Leon Tayson
@CMS: you might want to edit this answer as your link is explicitly what the OP said he didn't want to do.
Chris Lively
@Chris, yes I'll change it, the OP edited the question after I posted my answer...
CMS
still giving this +1
Leon Tayson
+1  A: 

Examples:

TomWij
A: 

Use the WMI classes.

See http://msdn.microsoft.com/en-us/library/aa394582.aspx

Chris Lively