摘要:
public class MyClass { PerformanceCounter counter = null; public float CpuUsage { get { if (counter== null) { counter = new PerformanceCounter ("Processor", "% Processor Time", "_Total"); } return (counter.NextValue ()); } }} 阅读全文
posted @ 2012-04-09 16:47
武胜-阿伟
阅读(195)
评论(0)
推荐(0)
浙公网安备 33010602011771号