Searched defs:ts (Results 1 - 6 of 6) sorted by relevance
/bionic/libc/unistd/ |
H A D | usleep.c | 33 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 D | strtotimeval.c | 33 char * strtotimeval (const char *str, struct timeval *ts) argument 39 ts->tv_sec = strtoumax(str, &s, 10); 61 ts->tv_usec = fs;
|
/bionic/libc/bionic/ |
H A D | semaphore.c | 299 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 D | pthread.c | 1394 /* initialize 'ts' with the difference between 'abstime' and the current time 1398 __timespec_to_absolute(struct timespec* ts, const struct timespec* abstime, clockid_t clock) argument 1400 clock_gettime(clock, ts); 1401 ts->tv_sec = abstime->tv_sec - ts->tv_sec; 1402 ts->tv_nsec = abstime->tv_nsec - ts->tv_nsec; 1403 if (ts->tv_nsec < 0) { 1404 ts->tv_sec--; 1405 ts 1433 struct timespec ts; local 1492 struct timespec ts; local 1724 struct timespec ts; local 1772 struct timespec ts; local [all...] |
/bionic/libc/netbsd/isc/ |
H A D | ev_timers.c | 157 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 D | localtime.c | 654 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...] |
Completed in 158 milliseconds