clock_gettime.c 193 B

123456789
  1. #define _GNU_SOURCE
  2. #include <time.h>
  3. #include <unistd.h>
  4. #include <sys/syscall.h>
  5. int clock_gettime(clockid_t clk_id, struct timespec *tp)
  6. {
  7. return syscall(SYS_clock_gettime, clk_id, tp);
  8. }