2012-10-01 25 views

回答

2

C#你可以做到以下幾點:

private PerformanceCounter cpuCounter = new PerformanceCounter("Process", "% Processor Time", Process.GetCurrentProcess().ProcessName); 

cpuCounter.NextValue(); // it will give you cpu usage 

你應該參考here瞭解詳情。

相關問題