Searched refs:tv (Results 1 – 13 of 13) sorted by relevance
/system/extras/tests/bionic/libc/other/ |
D | bench_locks.c | 9 struct timeval tv; in now() local 10 gettimeofday(&tv, NULL); in now() 11 return tv.tv_sec + tv.tv_usec/1000000.0; in now()
|
D | test_zlib.c | 167 struct timeval tv; in get_time_usec() 168 if (gettimeofday( &tv, NULL ) < 0) in get_time_usec() 171 return tv.tv_sec*1000000. + tv.tv_usec*1.0; in get_time_usec()
|
D | test_jpeg.c | 230 struct timeval tv; in get_time_usec() 231 if (gettimeofday( &tv, NULL ) < 0) 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 | 163 struct timeval tv; in powerd_main() local 298 tv.tv_sec = idle_time; in powerd_main() 299 tv.tv_usec = 0; in powerd_main() 302 tv.tv_sec = 0; in powerd_main() 303 tv.tv_usec = 500000; in powerd_main() 311 res = select(((notifyfd > eventfd) ? notifyfd : eventfd) + 1, &rfds, NULL, NULL, &tv); in powerd_main() 329 tv.tv_sec = 60*60*24; in powerd_main() 330 tv.tv_usec = 0; in powerd_main() 365 tv.tv_sec = key_light_time; in powerd_main() 372 tv.tv_sec = idle_time; in powerd_main() [all …]
|
D | date.c | 47 struct timeval tv; in date_main() local 114 strtotimeval(argv[optind], &tv); in date_main() 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() 118 ts.tv_nsec = tv.tv_usec * 1000; in date_main()
|
D | dd.c | 991 #define tv2mS(tv) ((tv).tv_sec * 1000LL + ((tv).tv_usec + 500) / 1000) argument 998 struct timeval tv; in summary() local 1003 (void)gettimeofday(&tv, NULL); in summary() 1004 mS = tv2mS(tv) - tv2mS(st.start); in summary()
|
D | alarm.c | 102 time(&tv.tv_sec); in alarm_main()
|
D | newfs_msdos.c | 288 struct timeval tv; in newfs_msdos_main() local 642 gettimeofday(&tv, NULL); in newfs_msdos_main() 643 now = tv.tv_sec; in newfs_msdos_main() 699 (u_int)(tv.tv_usec / 10))) << 16 | in newfs_msdos_main()
|
/system/core/fastboot/ |
D | usbtest.c | 43 struct timeval tv; in NOW() local 44 gettimeofday(&tv, 0); in NOW() 46 return (((long long) tv.tv_sec) * ((long long) 1000000)) + in NOW() 47 (((long long) tv.tv_usec)); in NOW()
|
/system/extras/tests/framebuffer/ |
D | fb_test.c | 51 struct timespec tv, tv2; variable 236 printf("%lld\n", (tv2.tv_sec*1000000000LL + tv2.tv_nsec) - (tv.tv_sec*1000000000LL + tv.tv_nsec)); in main()
|
/system/wlan/ti/sta_dk_4_0_4_32/pform/linux/src/ |
D | osapi.c | 465 struct timeval tv; in os_timeStampMs() local 466 do_gettimeofday(&tv); in os_timeStampMs() 467 return tv.tv_sec*1000 + tv.tv_usec/1000; in os_timeStampMs() 488 struct timeval tv; in os_timeStampUs() local 489 do_gettimeofday(&tv); in os_timeStampUs() 490 return tv.tv_sec*1000000 + tv.tv_usec; in os_timeStampUs()
|
/system/core/init/ |
D | devices.c | 295 struct timeval tv; in get_usecs() local 296 gettimeofday(&tv, 0); in get_usecs() 297 return tv.tv_sec * (suseconds_t) 1000000 + tv.tv_usec; in get_usecs()
|
/system/core/adb/ |
D | file_sync_client.c | 40 struct timeval tv; in NOW() local 41 gettimeofday(&tv, 0); in NOW() 42 return ((long long) tv.tv_usec) + in NOW() 43 1000000LL * ((long long) tv.tv_sec); in NOW()
|