How to get CPU time used by a thread given its ID?

470 views Asked by At

So I want to get the cpu time used by a thread given its ID. getrusage is not applicable here as getrusage(RUSAGE_THREAD, &r_usage); returns the resources used by the thread that calls it, here I want to get resources of a thread other than the one I am in.

0

There are 0 answers