/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/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()
|
D | test_zlib.c | 165 return ts.tv_sec*1e6 + ts.tv_nsec*1e-3; in get_time_usec() 171 return tv.tv_sec*1000000. + tv.tv_usec*1.0; in get_time_usec()
|
D | test_jpeg.c | 228 return ts.tv_sec*1e6 + ts.tv_nsec*1e-3; in get_time_usec() 234 return tv.tv_sec*1000000. + tv.tv_usec*1.0; in get_time_usec()
|
/system/core/toolbox/ |
D | powerd.c | 298 tv.tv_sec = idle_time; in powerd_main() 302 tv.tv_sec = 0; in powerd_main() 329 tv.tv_sec = 60*60*24; in powerd_main() 361 len = sprintf(buf, "%ld%06lu000", event.time.tv_sec, event.time.tv_usec); in powerd_main() 365 tv.tv_sec = key_light_time; in powerd_main() 372 tv.tv_sec = idle_time; in powerd_main() 409 tv.tv_sec = idle_time - lcd_light_time; in powerd_main() 415 tv.tv_sec = lcd_light_time - key_light_time; in powerd_main() 424 tv.tv_sec = idle_time - lcd_light_time; in powerd_main() 429 … len = sprintf(buf, "%ld%06lu000", power_key_down_time.tv_sec, power_key_down_time.tv_usec); in powerd_main() [all …]
|
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 | 36 ts.tv_sec = t; in settime() 115 printf("time %s -> %d.%d\n", argv[optind], tv.tv_sec, tv.tv_usec); in date_main() 117 ts.tv_sec = tv.tv_sec; in date_main()
|
D | uptime.c | 69 return ts.tv_sec; in elapsedRealtime()
|
/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/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_mutex.c | 79 return (double)ts->tv_sec + ts->tv_nsec/1e9; in time_now() 88 ts.tv_sec = (time_t)delay; in time_sleep() 89 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/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/nexus/ |
D | WifiStatusPoller.cpp | 89 to.tv_sec = mPollingInterval; in run()
|
D | WifiScanner.cpp | 85 to.tv_sec = mPeriod; in run()
|
/system/wlan/ti/sta_dk_4_0_4_32/CUDK/OAL/Pform/Linux/ |
D | TILibLinux.cpp | 175 req.tv_sec = 0; in TISleep()
|
/system/extras/ext4_utils/ |
D | ext4.h | 306 …node, raw_inode) do { (raw_inode)->xtime = cpu_to_le32((inode)->xtime.tv_sec); if (EXT4_FITS_… 307 …node, einode, xtime)) (raw_inode)->xtime = cpu_to_le32((einode)->xtime.tv_sec); if (EXT4_FITS_… 308 #define EXT4_INODE_GET_XTIME(xtime, inode, raw_inode) do { (inode)->xtime.tv_sec = (signed)le32_… 309 … { if (EXT4_FITS_IN_INODE(raw_inode, einode, xtime)) (einode)->xtime.tv_sec = (signed)le32_t…
|