Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我一直在到处寻找可以计算负载平均值的代码片段。
非常感谢任何想法、片段或链接!
谢谢!
杰弗里
这个Process类有一些你可以使用的属性(TotalProcessorTime, UserProcessorTime, ...)。
Process
TotalProcessorTime
UserProcessorTime
Msdn:http: //msdn.microsoft.com/en-us/library/system.diagnostics.process.totalprocessortime.aspx