Subj : Re: nptl threads execution time To : comp.programming.threads From : Daniel Simon Date : Wed Apr 13 2005 12:03 pm On 12 Apr 2005 08:57:43 -0700 loic-dev@gmx.net wrote: thanks for your answer > but wouldn't the > function clock_gettime() with a CLOCK_THREAD_CPUTIME_ID clock do it? According to available info it seems that it should do what I need... >This quite new function, standardized by SUSv3, is available on FC3. ....may be its defined but not implemented (glibc-2.3.4-2.fc3, kernel-2.6.10-hrt) /usr/include/bits/time.h:# define CLOCK_THREAD_CPUTIME_ID 3 clock_getrestest.c,83:clock_getres(CLOCK_THREAD_CPUTIME_ID, &ts): Invalid argument Daniel -- ***********The difference between theory and practice**************** **************is larger in practice than in theory******************* Daniel SIMON Projet POP ART INRIA Rhone-Alpes ZIRST, 655 avenue de l'Europe, 38330 MONTBONNOT SAINT MARTIN, FRANCE Daniel.Simon@inrialpes.fr Phone:(33)476615328 Fax:(33)476615252 http://www.inrialpes.fr/pop-art/people/simon ********************************************************************* .