2 * Acess2 POSIX Emulation
3 * - By John Hodge (thePowersGang)
13 int clock_getres(clockid_t clk_id, struct timespec *res)
21 res->tv_nsec = 1000*1000;
29 int clock_gettime(clockid_t clk_id, struct timespec *tp)
35 // TODO: True monotonic clock
37 int64_t ts = _SysTimestamp();
38 tp->tv_sec = ts / 1000;
39 tp->tv_nsec = (ts % 1000) * 1000*1000;
47 int clock_settime(clockid_t clk_id, const struct timespec *tp)