Searched refs:ts (Results 1 - 10 of 10) sorted by relevance

/bionic/libc/bionic/
H A Dusleep.c33 struct timespec ts; local
35 ts.tv_sec = usec/1000000UL;
39 ts.tv_nsec = (usec - ts.tv_sec*1000000UL)*1000;
41 ts.tv_nsec = (usec % 1000000UL) * 1000UL;
46 if ( nanosleep( &ts, &ts ) == 0 )
H A Dstrtotimeval.c33 char * strtotimeval (const char *str, struct timeval *ts) argument
39 ts->tv_sec = strtoumax(str, &s, 10);
61 ts->tv_usec = fs;
H A Dsemaphore.c299 struct timespec ts; local
303 clock_gettime( CLOCK_REALTIME, &ts );
304 ts.tv_sec = abs_timeout->tv_sec - ts.tv_sec;
305 ts.tv_nsec = abs_timeout->tv_nsec - ts.tv_nsec;
306 if (ts.tv_nsec < 0) {
307 ts.tv_nsec += 1000000000;
308 ts.tv_sec -= 1;
311 if (ts
[all...]
H A Dpthread.c799 /* initialize 'ts' with the difference between 'abstime' and the current time
803 __timespec_to_absolute(struct timespec* ts, const struct timespec* abstime, clockid_t clock) argument
805 clock_gettime(clock, ts);
806 ts->tv_sec = abstime->tv_sec - ts->tv_sec;
807 ts->tv_nsec = abstime->tv_nsec - ts->tv_nsec;
808 if (ts->tv_nsec < 0) {
809 ts->tv_sec--;
810 ts
838 struct timespec ts; local
897 struct timespec ts; local
1129 struct timespec ts; local
1177 struct timespec ts; local
[all...]
/bionic/libc/kernel/common/linux/
H A Dktime.h57 #define ktime_get_real_ts(ts) getnstimeofday(ts)
/bionic/libc/upstream-netbsd/libc/isc/
H A Dev_timers.c168 struct timespec ts; local
170 ts.tv_sec = tv.tv_sec;
171 ts.tv_nsec = tv.tv_usec * 1000;
172 return (ts);
176 evTimeVal(struct timespec ts) { argument
179 tv.tv_sec = ts.tv_sec;
180 tv.tv_usec = (suseconds_t)(ts.tv_nsec / 1000);
/bionic/libc/tzcode/
H A Dlocaltime.c525 struct state ts; local
529 result = tzparse(&up->buf[1], &ts, FALSE);
530 if (result == 0 && ts.typecnt == 2 &&
531 sp->charcnt + ts.charcnt <= TZ_MAX_CHARS) {
533 ts.ttis[i].tt_abbrind +=
535 for (i = 0; i < ts.charcnt; ++i)
537 ts.chars[i];
539 while (i < ts.timecnt &&
540 ts.ats[i] <=
543 while (i < ts
[all...]
/bionic/tests/
H A Dpthread_test.cpp287 timespec ts; local
288 ASSERT_EQ(0, clock_gettime(c, &ts));
/bionic/libc/include/
H A Dpthread.h170 int pthread_mutex_timedlock(pthread_mutex_t *mutex, struct timespec* ts);
/bionic/libc/netbsd/resolv/
H A Dres_cache.c1319 struct timespec ts = {0,0}; local
1321 ts.tv_sec = _time_now() + PENDING_REQUEST_TIMEOUT;
1322 pthread_cond_timedwait(&ri->cond, &cache->lock, &ts);

Completed in 200 milliseconds