110,500
社区成员
发帖
与我相关
我的任务
分享
性能计数器:
private PerformanceCounter cpuPerformance = new PerformanceCounter();
cpuPerformance.CategoryName = "Processor";
cpuPerformance.CounterName = "% Processor Time";
cpuPerformance.InstanceName = "_Total";
double y = cpuPerformance.NextValue(); //CPU的使用率