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?

πάντα ῥεῖ
  • 1
  • 13
  • 116
  • 190
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,725
  • 2
  • 12
  • 24