PerformanceCounter cpuCounter = new PerformanceCounter(); puCounter = new PerformanceCounter(); cpuCounter.CategoryName = "Processor"; cpuCounter.CounterName = "% Processor Time"; cpuCounter.InstanceName = "_Total"; // will always start at 0 dynamic firstValue = cpuCounter.NextValue();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)