2012年4月9日
摘要: 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 武胜-阿伟 阅读(191) 评论(0) 推荐(0) 编辑