Home | History | Annotate | Download | only in libevent

Lines Matching defs:ts

134 		struct timespec ts;
135 ts.tv_sec = tv->tv_sec;
136 ts.tv_nsec = tv->tv_usec*1000;
137 nanosleep(&ts, NULL);
272 struct timespec ts;
283 if (clock_gettime(CLOCK_MONOTONIC_COARSE, &ts) == 0) {
289 if (!fallback && clock_gettime(CLOCK_MONOTONIC, &ts) == 0) {
306 struct timespec ts;
315 if (clock_gettime(base->monotonic_clock, &ts) == -1)
317 tp->tv_sec = ts.tv_sec;
318 tp->tv_usec = ts.tv_nsec / 1000;