getrusage with pthreads

David Xu davidxu at freebsd.org
Tue Oct 7 05:09:47 UTC 2008


Petri Helenius wrote:
> David Xu wrote:
>>
>> You can use clock_gettime(CLOCK_THREAD_CPUTIME_ID), but I admit
>> getrusage like function is better.
>>
> Is this implemented in FreeBSD starting from some specific version? I 
> cannot seem to find the header.
> 
> Pete
> 

It only exists in -CURRENT.




More information about the freebsd-threads mailing list