]>
git.proxmox.com Git - wasi-libc.git/blob - libc-top-half/musl/src/time/clock.c
8 if (__clock_gettime(CLOCK_PROCESS_CPUTIME_ID
, &ts
))
11 if (ts
.tv_sec
> LONG_MAX
/1000000
12 || ts
.tv_nsec
/1000 > LONG_MAX
-1000000*ts
.tv_sec
)
15 return ts
.tv_sec
*1000000 + ts
.tv_nsec
/1000;