1
0

clock_getres_time32.c 254 B

12345678910111213
  1. #include "time32.h"
  2. #include <time.h>
  3. int __clock_getres_time32(clockid_t clk, struct timespec32 *ts32)
  4. {
  5. struct timespec ts;
  6. int r = clock_getres(clk, &ts);
  7. if (!r && ts32) {
  8. ts32->tv_sec = ts.tv_sec;
  9. ts32->tv_nsec = ts.tv_nsec;
  10. }
  11. return r;
  12. }