Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to get per-thread cpu time?

Status
Not open for further replies.

lewisliu

Programmer
Feb 15, 2005
2
0
0
US
Hi,
I am using pthread on Redhat 7.x and need a way to record per-thread cpu time(user mode time), how can I do it inside my program?
Thanks for help!
 
I'd suggest to ask in the C coders forum.

. Mac for productivity
.. Linux for developement
... Windows for solitaire
 
You might look at the code for "top" and "sar" which should be available on the net.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top