LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   per-thread clock in linux? (https://www.linuxquestions.org/questions/programming-9/per-thread-clock-in-linux-101271/)

markkam 10-07-2003 11:48 AM

per-thread clock in linux?
 
Does anyone know how to obtain per-thread clock information in linux? I use C/C++. Have tried clock_gettime() passing in the clock id : CLOCK_THREAD_CPUTIME_ID. This returns a failure (-1).

BTW, I use Suse 8.0.

I need to get clock info down to the microseconds level.

Thanks,

Mark Young


All times are GMT -5. The time now is 08:58 PM.