Reputation: 125
how to get the cpu usage of a thread in .net in c#
Upvotes: 3
Views: 10728
Reputation: 4249
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.
Upvotes: 3