| PTHREAD_GETCPUCLOCKID(3) | Library Functions Manual | PTHREAD_GETCPUCLOCKID(3) | 
pthread_getcpuclockid —
#include <pthread.h>
int
  
  pthread_getcpuclockid(pthread_t
    thread, clockid_t
    *clock_id);
pthread_getcpuclockid() function retrieves the
  clock_id for the specified thread.
The clock_gettime(2) function can be used with the returned clock_id to retrieve LWP times.
pthread_getcpuclockid() function returns
  0, placing the requested clock_id in the argument.
  Otherwise an error number will be returned.
EFAULT]pthread_getcpuclockid() function conforms to
  IEEE Std 1003.1-2001 (“POSIX.1”).
  extension.
pthread_getcpuclockid() function appeared in
  NetBSD 8.
| March 5, 2017 | NetBSD 9.3 |