/system/extras/tests/timetest/ |
D | timetest.c | 22 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/ |
D | testUtil.c | 50 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/ |
D | icache_main.c | 22 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/ |
D | test_timer_create3.c | 56 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()
|
D | test_timer_create.c | 66 ts.it_value.tv_sec = 3; in create() 68 ts.it_interval.tv_sec = seconds; in create()
|
D | test_timer_create2.c | 65 ts.it_value.tv_sec = 3; in create() 67 ts.it_interval.tv_sec = seconds; in create()
|
D | bench_locks.c | 11 return tv.tv_sec + tv.tv_usec/1000000.0; in now()
|
D | test_thread_max.c | 57 ts.tv_sec = 0; in main()
|
/system/core/toolbox/ |
D | touch.c | 34 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()
|
D | alarm.c | 102 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()
|
D | date.c | 38 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()
|
D | uptime.c | 70 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/ |
D | echo_reference.c | 120 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/ |
D | stopwatch.cpp | 62 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/ |
D | schedtest.c | 36 long usec = (tv2.tv_sec - tv1.tv_sec) * 1000000 + tv2.tv_usec - tv1.tv_usec; in main()
|
/system/extras/tests/ext4/ |
D | rand_emmc_perf.c | 101 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/ |
D | test_pthread_getcpuclockid.c | 55 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()
|
D | test_pthread_once.c | 46 ts.tv_sec = 2; in once_function()
|
D | test_pthread_rwlock.c | 78 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/ |
D | pftest.c | 40 t.tv_sec = t.tv_nsec = 0; in stop_watch() 42 return t.tv_sec*1000000000ULL + t.tv_nsec; in stop_watch()
|
/system/vold/ |
D | fstrim.c | 45 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/ |
D | fptest.cpp | 41 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/ |
D | refresh.c | 22 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/ |
D | logprint.h | 44 time_t tv_sec; member
|
/system/core/libcorkscrew/ |
D | map_info.c | 137 t.tv_sec = t.tv_nsec = 0; in now() 139 return t.tv_sec * 1000000000LL + t.tv_nsec; in now()
|