musl-tcc/src/thread/pthread_getcpuclockid.c

8 lines
133 B
C
Raw Permalink Normal View History

2022-03-20 08:48:53 +00:00
#include "pthread_impl.h"
int pthread_getcpuclockid(pthread_t t, clockid_t *clockid)
{
*clockid = (-t->tid-1)*8U + 6;
return 0;
}