summaryrefslogtreecommitdiff
path: root/userland/libc/time/clock_gettime.c
blob: 15f0cb7e38996a7ee8af88b78c347656e5c78fd8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <syscall.h>
#include <time.h>

int clock_gettime(clockid_t clock_id, struct timespec *tp) {
  tp->tv_sec = 0;
  tp->tv_nsec = 0;
  return 0;
  /*
SYS_CLOCK_GETTIME_PARAMS args = {
.clk = clock_id,
.ts = tp,
};
return syscall(SYS_CLOCK_GETTIME, &args);*/
}