Lines Matching refs:ts
27 static inline long long timespec_to_ns(const struct timespec *ts) in timespec_to_ns() argument
29 return ((long long) ts->tv_sec * UM_NSEC_PER_SEC) + in timespec_to_ns()
30 ts->tv_nsec; in timespec_to_ns()
152 struct timespec ts; in os_vnsecs() local
154 clock_gettime(CLOCK_PROCESS_CPUTIME_ID,&ts); in os_vnsecs()
155 return timespec_to_ns(&ts); in os_vnsecs()
160 struct timespec ts; in os_nsecs() local
162 clock_gettime(CLOCK_MONOTONIC,&ts); in os_nsecs()
163 return timespec_to_ns(&ts); in os_nsecs()
172 struct timespec ts; in os_idle_sleep() local
178 ts = ((struct timespec) { in os_idle_sleep()
186 if (clock_nanosleep(CLOCK_MONOTONIC, 0, &ts, NULL)) { in os_idle_sleep()