Lines Matching refs:ts
46 DECLINLINE(int) sys_clock_gettime(clockid_t id, struct timespec *ts)
48 int rc = syscall(__NR_clock_gettime, id, ts);
58 DECLINLINE(int) mono_clock(struct timespec *ts)
68 return clock_gettime(CLOCK_MONOTONIC, ts);
74 return sys_clock_gettime(CLOCK_MONOTONIC, ts);
89 rc = clock_gettime(CLOCK_MONOTONIC, ts);
96 rc = sys_clock_gettime(CLOCK_MONOTONIC, ts);
119 struct timespec ts;
120 if (!mono_clock(&ts))
121 return (uint64_t)ts.tv_sec * RT_NS_1SEC_64
122 + ts.tv_nsec;