Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Code to check cpu usage?

Status
Not open for further replies.

pdbowling

Programmer
Mar 28, 2003
267
US
Hello everyone.

I was curious what the C# code (Visual Studio 2005) would look like for checking the CPU usage at any given time. Let's say it might do something like return a percentage in use or some other indicator.

I looked around the System. "using" libraries but nothing stood out. Just don't know where to start.
Thanks all.
Patrick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top