Home
last modified time | relevance | path

Searched refs:tv_sec (Results 1 – 25 of 56) sorted by relevance

123

/system/extras/tests/timetest/
Dtimetest.c22 return (((long long) t.tv_sec) * 1000000000LL) + in nanotime()
29 r.tv_sec = a.tv_sec - b.tv_sec; in ts_sub()
32 r.tv_sec--; in ts_sub()
35 if(r.tv_sec < 0 && r.tv_nsec > 0) { in ts_sub()
36 r.tv_sec++; in ts_sub()
44 if(a.tv_sec < b.tv_sec || (a.tv_sec == b.tv_sec && a.tv_nsec < b.tv_nsec)) in ts_min()
52 if(a.tv_sec < b.tv_sec || (a.tv_sec == b.tv_sec && a.tv_nsec < b.tv_nsec)) in ts_max()
65 dtmin.tv_sec = INT_MAX; in main()
67 dtminp.tv_sec = INT_MAX; in main()
69 dtmax.tv_sec = 0; in main()
[all …]
/system/extras/tests/lib/testUtil/
DtestUtil.c50 rv = val->tv_sec; in ts2double()
61 rv = val->tv_sec; in tv2double()
72 rv.tv_sec = floor(amt); in double2ts()
73 rv.tv_nsec = (amt - rv.tv_sec) * nSecsPerSec; in double2ts()
77 rv.tv_sec++; in double2ts()
88 rv.tv_sec = floor(amt); in double2tv()
89 rv.tv_usec = (amt - rv.tv_sec) * uSecsPerSec; in double2tv()
93 rv.tv_sec++; in double2tv()
111 rv.tv_sec = second->tv_sec - first->tv_sec; in tsDelta()
116 rv.tv_sec--; in tsDelta()
[all …]
/system/extras/tests/icachetest/
Dicache_main.c22 t = (tm.tv_sec*1000000LL+tm.tv_usec) - (now.tv_sec*1000000LL+now.tv_usec); in main()
29 t = (tm.tv_sec*1000000LL+tm.tv_usec) - (now.tv_sec*1000000LL+now.tv_usec); in main()
/system/extras/tests/bionic/libc/other/
Dtest_timer_create3.c56 ts.it_value.tv_sec = 0; in handle()
58 ts.it_interval.tv_sec = 1; in handle()
82 ts.it_value.tv_sec = 0; in create()
84 ts.it_interval.tv_sec = seconds; in create()
Dtest_timer_create.c66 ts.it_value.tv_sec = 3; in create()
68 ts.it_interval.tv_sec = seconds; in create()
Dtest_timer_create2.c65 ts.it_value.tv_sec = 3; in create()
67 ts.it_interval.tv_sec = seconds; in create()
Dbench_locks.c11 return tv.tv_sec + tv.tv_usec/1000000.0; in now()
Dtest_thread_max.c57 ts.tv_sec = 0; in main()
/system/core/toolbox/
Dtouch.c34 specified_time.tv_sec = atol(argv[++i]); in touch_main()
35 if (specified_time.tv_sec == 0) { in touch_main()
80 …fprintf(stderr, "times[0].tv_sec = %ld, times[0].tv_nsec = %ld\n", times[0].tv_sec, times[0].tv_ns… in touch_main()
81 …fprintf(stderr, "times[1].tv_sec = %ld, times[1].tv_nsec = %ld\n", times[1].tv_sec, times[1].tv_ns… in touch_main()
Dalarm.c102 time(&tv.tv_sec); in alarm_main()
105 time(&ts.tv_sec); in alarm_main()
119 ts.tv_sec += strtol(argv[optind], NULL, 0); in alarm_main()
121 gmtime_r(&ts.tv_sec, &tm); in alarm_main()
122 printf("time %s -> %ld.%09ld\n", argv[optind], ts.tv_sec, ts.tv_nsec); in alarm_main()
Ddate.c38 ts.tv_sec = t; in settime()
117 printf("time %s -> %d.%d\n", argv[optind], tv.tv_sec, tv.tv_usec); in date_main()
119 ts.tv_sec = tv.tv_sec; in date_main()
Duptime.c70 return ts.tv_sec; in elapsedRealtime()
97 up_time = up_timespec.tv_sec + up_timespec.tv_nsec / 1e9; in uptime_main()
/system/media/audio_utils/
Decho_reference.c120 er->wr_render_time.tv_sec = 0; in echo_reference_reset_l()
152 (int)buffer->time_stamp.tv_sec, in echo_reference_write()
158 if ((buffer->time_stamp.tv_sec == 0) && (buffer->time_stamp.tv_nsec == 0) && in echo_reference_write()
159 (er->wr_render_time.tv_sec == 0) && (er->wr_render_time.tv_nsec == 0)) { in echo_reference_write()
175 er->wr_render_time.tv_sec = buffer->time_stamp.tv_sec; in echo_reference_write()
277 (int)er->wr_render_time.tv_sec, (int)er->wr_render_time.tv_nsec, er->playback_delay); in echo_reference_write()
333 ts.tv_sec = timeoutMs/1000; in echo_reference_read()
346 if ((er->wr_render_time.tv_sec == 0 && er->wr_render_time.tv_nsec == 0) || in echo_reference_read()
347 (buffer->time_stamp.tv_sec == 0 && buffer->time_stamp.tv_nsec == 0)) { in echo_reference_read()
353 tmp.tv_sec = buffer->time_stamp.tv_sec - er->wr_render_time.tv_sec - 1; in echo_reference_read()
[all …]
/system/extras/tests/sdcard/
Dstopwatch.cpp62 mStart.tv_sec = 0; in StopWatch()
136 long second = mData[i * 2].mTime.tv_sec - mStart.tv_sec; in sprint()
172 long second = mData[i + 1].mTime.tv_sec - mData[i].mTime.tv_sec; in processSamples()
211 double val = double(time.tv_nsec) / 1.0e9 + double(time.tv_sec); in timespecToDouble()
/system/extras/tests/schedtest/
Dschedtest.c36 long usec = (tv2.tv_sec - tv1.tv_sec) * 1000000 + tv2.tv_usec - tv1.tv_usec; in main()
/system/extras/tests/ext4/
Drand_emmc_perf.c101 res.tv_sec = 0; in main()
103 while (res.tv_sec < TEST_LEN) { in main()
127 printf("%d iops/sec\n", iops / (int) res.tv_sec); in main()
/system/extras/tests/bionic/libc/common/
Dtest_pthread_getcpuclockid.c55 ts.tv_sec = 0; in thread_func()
60 …fprintf(stderr, "thread %08lx: clock_gettime() returned %g nsecs\n", self, ts.tv_sec*1e9 + ts.tv_n… in thread_func()
Dtest_pthread_once.c46 ts.tv_sec = 2; in once_function()
Dtest_pthread_rwlock.c78 return (double)ts->tv_sec + ts->tv_nsec/1e9; in time_now()
87 ts.tv_sec = (time_t)delay; in time_sleep()
88 ts.tv_nsec = (long)((delay - ts.tv_sec)*1e9); in time_sleep()
/system/extras/tests/pftest/
Dpftest.c40 t.tv_sec = t.tv_nsec = 0; in stop_watch()
42 return t.tv_sec*1000000000ULL + t.tv_nsec; in stop_watch()
/system/vold/
Dfstrim.c45 t.tv_sec = 0; in get_boot_time_ms()
48 time_ms = (t.tv_sec * 1000LL) + (t.tv_nsec / 1000000); in get_boot_time_ms()
/system/extras/tests/memtest/
Dfptest.cpp41 t.tv_sec = t.tv_nsec = 0; in system_time()
43 return nsecs_t(t.tv_sec)*1000000000LL + t.tv_nsec; in system_time()
/system/extras/tests/framebuffer/
Drefresh.c22 t.tv_sec = t.tv_nsec = 0; in systemTime()
24 return (int64_t)(t.tv_sec)*1000000000LL + t.tv_nsec; in systemTime()
/system/core/include/cutils/
Dlogprint.h44 time_t tv_sec; member
/system/core/libcorkscrew/
Dmap_info.c137 t.tv_sec = t.tv_nsec = 0; in now()
139 return t.tv_sec * 1000000000LL + t.tv_nsec; in now()

123