2df Subj : Re: nptl threads execution time To : comp.programming.threads From : Christian Panten Date : Wed Apr 13 2005 09:40 am > > Perhaps I don't understand your question correctly, but wouldn't the > function clock_gettime() with a CLOCK_THREAD_CPUTIME_ID clock do it? > This function measures the time a thread has been scheduled on a > processor. In my tests on several systems the function clock_gettime() with CLOCK_THREAD_CPUTIME_ID doesn't return the cputime of a thread, but the cputime of the whole process. The sole chance to get the cputime of a thread is to parse the file /proc//task//stat. This works under linux. But under AIX 5.1 I didn't find a solution. Christian . 0