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

/system/extras/tests/bionic/libc/other/
H A Dtest_timer_create3.c47 struct itimerspec ts; local
56 ts.it_value.tv_sec = 0;
57 ts.it_value.tv_nsec = 0;
58 ts.it_interval.tv_sec = 1;
59 ts.it_interval.tv_nsec = 0;
60 timer_settime(tid, TIMER_ABSTIME, &ts, NULL);
69 struct itimerspec ts, ots; local
82 ts.it_value.tv_sec = 0;
83 ts.it_value.tv_nsec = 1;
84 ts
[all...]
H A Dtest_thread_max.c51 struct timespec ts; local
57 ts.tv_sec = 0;
58 ts.tv_nsec = 0.002*1e9;
59 nanosleep( &ts, &ts );
H A Dtest_timer_create.c53 struct itimerspec ts, ots; local
66 ts.it_value.tv_sec = 3;
67 ts.it_value.tv_nsec = 0;
68 ts.it_interval.tv_sec = seconds;
69 ts.it_interval.tv_nsec = 0;
70 if (timer_settime (tid, TIMER_ABSTIME, &ts, &ots) < 0)
H A Dtest_timer_create2.c53 struct itimerspec ts, ots; local
65 ts.it_value.tv_sec = 3;
66 ts.it_value.tv_nsec = 0;
67 ts.it_interval.tv_sec = seconds;
68 ts.it_interval.tv_nsec = 0;
69 if (timer_settime (tid, TIMER_ABSTIME, &ts, &ots) < 0)
H A Dtest_jpeg.c223 struct timespec ts; local
225 if ( clock_gettime( CLOCK_MONOTONIC, &ts ) < 0 )
228 return ts.tv_sec*1e6 + ts.tv_nsec*1e-3;
H A Dtest_zlib.c160 struct timespec ts; local
162 if ( clock_gettime( CLOCK_MONOTONIC, &ts ) < 0 )
165 return ts.tv_sec*1e6 + ts.tv_nsec*1e-3;
/system/extras/tests/bionic/libc/common/
H A Dtest_pthread_getcpuclockid.c42 struct timespec ts; local
55 ts.tv_sec = 0;
56 ts.tv_nsec = 300000000 + ((int)arg)*50000000;
57 nanosleep( &ts, &ts );
59 clock_gettime( clock, &ts );
60 fprintf(stderr, "thread %08lx: clock_gettime() returned %g nsecs\n", self, ts.tv_sec*1e9 + ts.tv_nsec);
H A Dtest_pthread_once.c42 struct timespec ts; local
46 ts.tv_sec = 2;
47 ts.tv_nsec = 0;
48 nanosleep (&ts, NULL);
H A Dbench_stdio.c48 struct timespec ts; local
49 clock_gettime(CLOCK_MONOTONIC, &ts);
50 return ts.tv_sec*1000. + ts.tv_nsec*1e-6;
H A Dtest_pthread_rwlock.c75 struct timespec ts[1]; local
77 clock_gettime(CLOCK_MONOTONIC, ts);
78 return (double)ts->tv_sec + ts->tv_nsec/1e9;
84 struct timespec ts; local
87 ts.tv_sec = (time_t)delay;
88 ts.tv_nsec = (long)((delay - ts.tv_sec)*1e9);
91 ret = nanosleep(&ts, &ts);
[all...]
H A Dtest_pthread_mutex.c76 struct timespec ts[1]; local
78 clock_gettime(CLOCK_MONOTONIC, ts);
79 return (double)ts->tv_sec + ts->tv_nsec/1e9;
85 struct timespec ts; local
88 ts.tv_sec = (time_t)delay;
89 ts.tv_nsec = (long)((delay - ts.tv_sec)*1e9);
92 ret = nanosleep(&ts, &ts);
[all...]
H A Dbench_pthread.c63 struct timespec ts; local
68 clock_gettime(CLOCK_THREAD_CPUTIME_ID,&ts);
69 return ts.tv_sec*1000000000LL + ts.tv_nsec;
/system/core/toolbox/
H A Ddate.c17 struct timespec ts; local
38 ts.tv_sec = t;
39 ts.tv_nsec = 0;
40 ioctl(fd, ANDROID_ALARM_SET_RTC, &ts);
50 struct timespec ts; local
119 ts.tv_sec = tv.tv_sec;
120 ts.tv_nsec = tv.tv_usec * 1000;
121 res = ioctl(fd, ANDROID_ALARM_SET_RTC, &ts);
H A Dalarm.c17 struct timespec ts; local
105 time(&ts.tv_sec);
106 ts.tv_nsec = 0;
114 res = ioctl(afd, ANDROID_ALARM_GET_TIME(alarmtype), &ts);
119 ts.tv_sec += strtol(argv[optind], NULL, 0);
121 gmtime_r(&ts.tv_sec, &tm);
122 printf("time %s -> %ld.%09ld\n", argv[optind], ts.tv_sec, ts.tv_nsec);
126 res = ioctl(afd, ANDROID_ALARM_SET(alarmtype), &ts);
H A Duptime.c59 struct timespec ts; local
66 result = ioctl(fd, ANDROID_ALARM_GET_TIME(ANDROID_ALARM_ELAPSED_REALTIME), &ts);
70 return ts.tv_sec;
/system/core/libcutils/
H A Dzygote.c228 struct timespec ts; local
230 memset(&ts, 0, sizeof(ts));
231 ts.tv_nsec = ZYGOTE_RETRY_MILLIS * 1000 * 1000;
234 err = nanosleep (&ts, &ts);
H A Dtztime.c580 struct state ts; local
584 result = tzparse(&u.buf[1], &ts, FALSE);
585 if (result == 0 && ts.typecnt == 2 &&
586 sp->charcnt + ts.charcnt <= TZ_MAX_CHARS) {
588 ts.ttis[i].tt_abbrind +=
590 for (i = 0; i < ts.charcnt; ++i)
592 ts.chars[i];
594 while (i < ts.timecnt &&
595 ts.ats[i] <=
598 while (i < ts
[all...]
/system/core/adb/
H A Dcommandline.c499 const char *ts; local
504 ts = s;
508 for( ;*ts != '\0'; ts++) {
510 if (*ts == ' ' || *ts == '"' || *ts == '\\' || *ts == '(' || *ts == ')') {
517 ts
[all...]
H A Dusb_linux.c316 struct timespec ts; local
345 ts.tv_sec = tv.tv_sec + 5;
346 ts.tv_nsec = tv.tv_usec * 1000L;
347 res = pthread_cond_timedwait(&h->notify, &h->lock, &ts);
/system/extras/sane_schedstat/
H A Dsane_schedstat.c113 unsigned long long ts; local
122 if (!b || sscanf(b, "timestamp %llu\n", &ts) != 1) {
/system/core/init/
H A Dutil.c270 struct timespec ts; local
273 ret = clock_gettime(CLOCK_MONOTONIC, &ts);
279 return ts.tv_sec;
/system/core/libnetutils/
H A Ddhcpclient.c55 struct timespec ts; local
57 if (clock_gettime(CLOCK_MONOTONIC, &ts)) {
60 return (((msecs_t) ts.tv_sec) * ((msecs_t) 1000)) +
61 (((msecs_t) ts.tv_nsec) / ((msecs_t) 1000000));
/system/core/fs_mgr/
H A Dfs_mgr.c85 struct timespec ts; local
88 ret = clock_gettime(CLOCK_MONOTONIC, &ts);
94 return ts.tv_sec;
/system/media/audio_utils/
H A Decho_reference.c329 struct timespec ts; local
331 ts.tv_sec = timeoutMs/1000;
332 ts.tv_nsec = timeoutMs%1000;
333 pthread_cond_timedwait_relative_np(&er->cond, &er->lock, &ts);

Completed in 662 milliseconds