time used by a thread

2008-07-03 Thread Stephen Montgomery-Smith
I want to use getrusage to see how much time a program is using. But this is a multithreaded program, and I just want the time taken by that particular thread! I know this info must be available somewhere, because top -H seems to provide it. But getrusage seems to give the total rusage for

Re: time used by a thread

2008-07-03 Thread Sergey Babkin
I want to use getrusage to see how much time a program is using. But this is a multithreaded program, and I just want the time taken by that particular thread! I know this info must be available somewhere, because top -H seems to provide it. But getrusage seems to give the total rusage for

Re: time used by a thread

2008-07-03 Thread Stephen Montgomery-Smith
Sergey Babkin wrote: I want to use getrusage to see how much time a program is using. But this is a multithreaded program, and I just want the time taken by that particular thread! I know this info must be available somewhere, because top -H seems to provide it. But getrusage seems to give