Calculate CPU usage for a Windows process?

前端 未结 1 1327
滥情空心
滥情空心 2021-01-15 16:32

Given a process ID, how can i get the cpu load from this process with C#?

I have tried using PerformanceCounter as described in c# calculate CPU usage for a specific

1条回答
  •  醉梦人生
    2021-01-15 16:59

    If you have two cores, the task manager is going to report 100% usage of 1 CPU as 50%. That's probably your issue right there.

    0 讨论(0)
提交回复
热议问题