1 2 3 4 5 6 7 8
public uint CPUSpeed() { ManagementObject Mo = new ManagementObject("Win32_Processor.DeviceID='CPU0'"); uint sp = (uint)(Mo["CurrentClockSpeed"]); Mo.Dispose(); return sp; }