Click here to Skip to main content
15,948,339 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:

I have a process running in my machine.I need to calculate the CPU usage of that particular process in C#. The running process is a totally separate process apart from the Visual Studio. I think this could be achieved by using ManagementObjectSearcher class of System.Management namespace, but I am unable to write code to do it.

1 solution

Share this answer
Khatkole Komal 12-Sep-13 8:06am    
thank you very much !
similarly, Can i calculate memory usage of a process?
CB Sharma 12-Sep-13 8:42am    
Here is link

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