I'm looking for a way to monitor system statistics.
My ultimate goal is to write an application that can be used for easily running in the backround, and allow setting many events for certain actions, example: When processer temp gets to 56C -> Do _Blank_
etc.
If the code is in another .net language it's okay.
Well, I figured out how to get my usage! 1 down, 3 to go.
CPU Usage:
using (PerformanceCounter pc = new PerformanceCounter("Processor", "% Processor Time", "_Total"))
{
while (true)
{
Console.WriteLine(pc.NextValue());
Thread.Sleep(100);
}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With