Get current CPU Load and available free physical memeory

Hi,

How can I get the current CPU load (i.e. available system idle time as percent) and also the level of free physical memory using C#?

Also:

Without any additional effort on my part (i.e. storing values over a short time series), is it possible to deliver both of these values as a mean average? I.e.:

"What was the average CPU load in the last X seconds?"
"What was the average level of free physical memory in the last X seconds?"


Thanks!
James_15Asked:
Who is Participating?
 
Jase-CoderConnect With a Mentor Commented:
in visual studio 2005 in your toolbox under components there is a component called: PerformanceCounter you can use that
0
 
James_15Author Commented:
Cheers!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.