Lines Matching refs:ts
129 static time_t impl_timespec2msec(const struct timespec *ts)
131 return (ts->tv_sec * 1000U) + (ts->tv_nsec / 1000000L);
313 mtx_timedlock(mtx_t *mtx, const struct timespec *ts)
316 assert(ts != NULL);
319 if (impl_abs2relmsec(ts) == 0)
512 timespec_get(struct timespec *ts, int base)
514 assert(ts != NULL);
516 ts->tv_sec = time(NULL);
517 ts->tv_nsec = 0;