Lines Matching refs:ts
166 struct timespec ts; in evutil_usleep_() local
167 ts.tv_sec = tv->tv_sec; in evutil_usleep_()
168 ts.tv_nsec = tv->tv_usec*1000; in evutil_usleep_()
169 nanosleep(&ts, NULL); in evutil_usleep_()
317 struct timespec ts; in evutil_configure_monotonic_time_() local
328 if (clock_gettime(CLOCK_MONOTONIC_COARSE, &ts) == 0) { in evutil_configure_monotonic_time_()
334 if (!fallback && clock_gettime(CLOCK_MONOTONIC, &ts) == 0) { in evutil_configure_monotonic_time_()
351 struct timespec ts; in evutil_gettime_monotonic_() local
360 if (clock_gettime(base->monotonic_clock, &ts) == -1) in evutil_gettime_monotonic_()
362 tp->tv_sec = ts.tv_sec; in evutil_gettime_monotonic_()
363 tp->tv_usec = ts.tv_nsec / 1000; in evutil_gettime_monotonic_()