Searched refs:ts (Results 1 – 8 of 8) sorted by relevance
| /libevent-2.1.12/ |
| H A D | evutil_time.c | 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_() [all …]
|
| H A D | evthread_pthread.c | 145 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 D | evport.c | 275 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 D | kqueue.c | 272 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 D | configure.ac | 566 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 D | CheckWorkingKqueue.cmake | 19 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 D | bench_cascade.c | 85 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 D | bench.c | 104 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()
|