pthread_getcpuclockid - access a thread CPU-time clock
#include <pthread.h> #include <time.h> int pthread_getcpuclockid(pthread_t thread_id, clockid_t *clock_id);
The pthread_getcpuclockid() function shall return in clock_id the clock ID of the CPU-time clock of the thread specified by thread_id if the thread described by thread_id exists.
On successful completion, pthread_getcpuclockid() shall return 0; otherwise an error shall be returned to indicate the error
The pthread_getcpuclockid() function may fail if:
The thread specified by thread_id does not exist.
See attributes(7) for descriptions of the following attributes:
|
clock_getcpuclockid(3C), clock_getres(3C), timer_create(3C), attributes(7), standards(7)