how to get the cpu usage of a thread in .net in c#
Asked
Active
Viewed 1.1k times
3
-
http://www.codeproject.com/KB/system/processescpuusage.aspx -first result from google- – honibis Oct 18 '10 at 11:28
-
2possible duplicate of [How to get the cpu usage per thread on windows (win32)](http://stackoverflow.com/questions/1393006/how-to-get-the-cpu-usage-per-thread-on-windows-win32) – Hans Passant Oct 18 '10 at 11:36
-
Possible duplicate of [How can I get CPU usage and/or RAM usage of a \*THREAD\* in C# (managed code)?](http://stackoverflow.com/questions/934497/how-can-i-get-cpu-usage-and-or-ram-usage-of-a-thread-in-c-sharp-managed-code) – user2864740 Dec 13 '16 at 00:16
1 Answers
3
Check How to get the cpu usage per thread on windows (win32) and GetThreadTimes you can use PInvoke for that. Another similar post on SO: How can I get CPU usage and/or RAM usage of a THREAD in C# (managed code)? So this is duplicate.

Community
- 1
- 1

Nick Martyshchenko
- 4,231
- 2
- 20
- 24