Home
last modified time | relevance | path

Searched refs:ts (Results 1 – 8 of 8) sorted by relevance

/libevent-2.1.12/
H A Devutil_time.c166 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_()
[all …]
H A Devthread_pthread.c145 struct timespec ts; in evthread_posix_cond_wait() local
148 ts.tv_sec = abstime.tv_sec; in evthread_posix_cond_wait()
149 ts.tv_nsec = abstime.tv_usec*1000; in evthread_posix_cond_wait()
150 r = pthread_cond_timedwait(cond, lock, &ts); in evthread_posix_cond_wait()
H A Devport.c275 struct timespec ts; in evport_dispatch() local
278 ts.tv_sec = tv->tv_sec; in evport_dispatch()
279 ts.tv_nsec = tv->tv_usec * 1000; in evport_dispatch()
280 ts_p = &ts; in evport_dispatch()
H A Dkqueue.c272 struct timespec ts, *ts_p = NULL; in kq_dispatch() local
276 ts.tv_sec = tv->tv_sec; in kq_dispatch()
277 ts.tv_nsec = tv->tv_usec * 1000; in kq_dispatch()
278 ts_p = &ts; in kq_dispatch()
H A Dconfigure.ac566 struct timespec ts;
590 ts.tv_sec = 0;
591 ts.tv_nsec = 0;
592 n = kevent(kq, NULL, 0, &ev, 1, &ts);
/libevent-2.1.12/cmake/
H A DCheckWorkingKqueue.cmake19 struct timespec ts;
43 ts.tv_sec = 0;
44 ts.tv_nsec = 0;
45 n = kevent(kq, NULL, 0, &ev, 1, &ts);
/libevent-2.1.12/test/
H A Dbench_cascade.c85 static struct timeval ts, te, tv_timeout; in run_once() local
103 evutil_gettimeofday(&ts, NULL); in run_once()
125 evutil_timersub(&te, &ts, &te); in run_once()
H A Dbench.c104 static struct timeval ts, te; in run_once() local
125 evutil_gettimeofday(&ts, NULL); in run_once()
137 evutil_timersub(&te, &ts, &te); in run_once()