using System.Diagnostics;
using System.ServiceProcess;private float CpuInfo()
{
PerformanceCounter pc = new PerformanceCounter("Process", "% Processor Time", "Idle");
float first = pc.NextValue();
Thread.Sleep(1);
float Second = pc.NextValue();
return Second;
}
using System.ServiceProcess;private float CpuInfo()
{
PerformanceCounter pc = new PerformanceCounter("Process", "% Processor Time", "Idle");
float first = pc.NextValue();
Thread.Sleep(1);
float Second = pc.NextValue();
return Second;
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货