0

I have a few threads in my program - run on Windows and write in C++. How can I know in the end of the running how much CPU time is used by all or one of them?

πάντα ῥεῖ
  • 85,314
  • 13
  • 111
  • 183
Erez
  • 87
  • 1
  • 6

1 Answers1

0

You can use the GetThreadTimes function: https://msdn.microsoft.com/en-us/library/windows/desktop/ms683237%28v=vs.85%29.aspx

mikedu95
  • 1,675
  • 1
  • 12
  • 22