Home
last modified time | relevance | path

Searched refs:tv (Results 1 – 20 of 20) sorted by relevance

/system/extras/tests/bionic/libc/other/
Dbench_locks.c9 struct timeval tv; in now() local
10 gettimeofday(&tv, NULL); in now()
11 return tv.tv_sec + tv.tv_usec/1000000.0; in now()
Dtest_zlib.c167 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()
Dtest_jpeg.c230 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/media/mca/filterfw/native/core/
Dtime_util.cpp31 struct timeval tv; in getTimeUs() local
33 gettimeofday(&tv, 0); in getTimeUs()
35 basesec = tv.tv_sec; in getTimeUs()
37 nowtime = (uint64_t)(tv.tv_sec - basesec) * (uint64_t)1000000 + in getTimeUs()
38 (uint64_t)tv.tv_usec; in getTimeUs()
/system/media/mca/filterpacks/base/native/
Dtime_util.cpp29 struct timeval tv; in getTimeUs() local
31 gettimeofday(&tv, 0); in getTimeUs()
33 basesec = tv.tv_sec; in getTimeUs()
35 nowtime = (uint64_t)(tv.tv_sec - basesec) * (uint64_t)1000000 + in getTimeUs()
36 (uint64_t)tv.tv_usec; in getTimeUs()
/system/core/toolbox/
Ddate.c49 struct timeval tv; in date_main() local
116 strtotimeval(argv[optind], &tv); in date_main()
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()
120 ts.tv_nsec = tv.tv_usec * 1000; in date_main()
Dpowerd.c163 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 …]
Ddd.c991 #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()
Dalarm.c102 time(&tv.tv_sec); in alarm_main()
Dnewfs_msdos.c259 struct timeval tv; in newfs_msdos_main() local
616 gettimeofday(&tv, NULL); in newfs_msdos_main()
617 now = tv.tv_sec; in newfs_msdos_main()
673 (u_int)(tv.tv_usec / 10))) << 16 | in newfs_msdos_main()
/system/core/libnl_2/
Dsocket.c37 struct timeval tv; in nl_socket_alloc() local
47 if (gettimeofday(&tv, NULL)) in nl_socket_alloc()
50 sk->s_seq_next = (int) tv.tv_sec; in nl_socket_alloc()
Dnetlink.c32 struct timeval tv; in nl_send_auto_complete() local
41 if (gettimeofday(&tv, NULL)) in nl_send_auto_complete()
44 nlh->nlmsg_seq = (int) tv.tv_sec; in nl_send_auto_complete()
/system/media/wilhelm/tests/sandbox/
Dgetch.c37 struct timeval tv = { 0L, 0L }; in kbhit() local
41 return select(1, &fds, NULL, NULL, &tv); in kbhit()
/system/core/fastboot/
Dusbtest.c43 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()
Dengine.c39 struct timeval tv; in now() local
40 gettimeofday(&tv, NULL); in now()
41 return (double)tv.tv_sec + (double)tv.tv_usec / 1000000; in now()
/system/core/libnl_2/genl/
Dgenl.c51 struct timeval tv; in genlmsg_put() local
67 if (gettimeofday(&tv, NULL)) in genlmsg_put()
70 nlh->nlmsg_seq = (int) tv.tv_sec; in genlmsg_put()
/system/core/adb/
Dusb_linux.c290 struct timeval tv; in usb_bulk_write() local
319 gettimeofday(&tv, NULL); in usb_bulk_write()
320 ts.tv_sec = tv.tv_sec + 5; in usb_bulk_write()
321 ts.tv_nsec = tv.tv_usec * 1000L; in usb_bulk_write()
Dfile_sync_client.c40 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()
/system/core/init/
Ddevices.c263 struct timeval tv; in get_usecs() local
264 gettimeofday(&tv, 0); in get_usecs()
265 return tv.tv_sec * (suseconds_t) 1000000 + tv.tv_usec; in get_usecs()
/system/extras/tests/framebuffer/
Dfb_test.c47 struct timespec tv, tv2; variable