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

/bionic/libc/unistd/
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 )
/bionic/libc/string/
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;
/bionic/libc/kernel/common/linux/
H A Dktime.h57 #define ktime_get_real_ts(ts) getnstimeofday(ts)
/bionic/libc/bionic/
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.c1398 /* initialize 'ts' with the difference between 'abstime' and the current time
1402 __timespec_to_absolute(struct timespec* ts, const struct timespec* abstime, clockid_t clock) argument
1404 clock_gettime(clock, ts);
1405 ts->tv_sec = abstime->tv_sec - ts->tv_sec;
1406 ts->tv_nsec = abstime->tv_nsec - ts->tv_nsec;
1407 if (ts->tv_nsec < 0) {
1408 ts->tv_sec--;
1409 ts
1437 struct timespec ts; local
1496 struct timespec ts; local
1728 struct timespec ts; local
1776 struct timespec ts; local
[all...]
/bionic/libc/netbsd/isc/
H A Dev_timers.c157 struct timespec ts; local
159 ts.tv_sec = tv.tv_sec;
160 ts.tv_nsec = tv.tv_usec * 1000;
161 return (ts);
165 evTimeVal(struct timespec ts) { argument
168 tv.tv_sec = ts.tv_sec;
169 tv.tv_usec = ts.tv_nsec / 1000;
/bionic/libc/tzcode/
H A Dlocaltime.c654 struct state ts; local
658 result = tzparse(&u.buf[1], &ts, FALSE);
659 if (result == 0 && ts.typecnt == 2 &&
660 sp->charcnt + ts.charcnt <= TZ_MAX_CHARS) {
662 ts.ttis[i].tt_abbrind +=
664 for (i = 0; i < ts.charcnt; ++i)
666 ts.chars[i];
668 while (i < ts.timecnt &&
669 ts.ats[i] <=
672 while (i < ts
[all...]
/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.c1253 struct timespec ts = {0,0}; local
1254 ts.tv_sec = _time_now() + PENDING_REQUEST_TIMEOUT;
1255 int rv = pthread_cond_timedwait(&ri->cond, &cache->lock, &ts);
/bionic/libc/kernel/common/media/
H A Dmsm_camera.h582 struct timespec ts; member in struct:msm_frame

Completed in 203 milliseconds