Searched defs:tv (Results 1 - 13 of 13) sorted by relevance

/system/extras/tests/bionic/libc/other/
H A Dbench_locks.c9 struct timeval tv; local
10 gettimeofday(&tv, NULL);
11 return tv.tv_sec + tv.tv_usec/1000000.0;
/system/core/toolbox/
H A Ddate.c47 struct timeval tv; local
112 //tv.tv_sec = mktime(&tm);
113 //tv.tv_usec = 0;
114 strtotimeval(argv[optind], &tv);
115 printf("time %s -> %d.%d\n", argv[optind], tv.tv_sec, tv.tv_usec);
117 ts.tv_sec = tv.tv_sec;
118 ts.tv_nsec = tv.tv_usec * 1000;
120 //res = settimeofday(&tv, NULL);
H A Ddd.c991 #define tv2mS(tv) ((tv).tv_sec * 1000LL + ((tv).tv_usec + 500) / 1000)
998 struct timeval tv; local
1003 (void)gettimeofday(&tv, NULL);
1004 mS = tv2mS(tv) - tv2mS(st.start);
H A Dpowerd.c163 struct timeval tv; local
298 tv.tv_sec = idle_time;
299 tv.tv_usec = 0;
302 tv.tv_sec = 0;
303 tv.tv_usec = 500000;
311 res = select(((notifyfd > eventfd) ? notifyfd : eventfd) + 1, &rfds, NULL, NULL, &tv);
329 tv.tv_sec = 60*60*24;
330 tv.tv_usec = 0;
365 tv.tv_sec = key_light_time;
372 tv
[all...]
H A Dnewfs_msdos.c259 struct timeval tv; local
616 gettimeofday(&tv, NULL);
617 now = tv.tv_sec;
673 (u_int)(tv.tv_usec / 10))) << 16 |
/system/core/fastboot/
H A Dusbtest.c43 struct timeval tv; local
44 gettimeofday(&tv, 0);
46 return (((long long) tv.tv_sec) * ((long long) 1000000)) +
47 (((long long) tv.tv_usec));
H A Dengine.c39 struct timeval tv; local
40 gettimeofday(&tv, NULL);
41 return (double)tv.tv_sec + (double)tv.tv_usec / 1000000;
/system/extras/tests/framebuffer/
H A Dfb_test.c51 struct timespec tv, tv2; variable in typeref:struct:timespec
/system/core/adb/
H A Dfile_sync_client.c40 struct timeval tv; local
41 gettimeofday(&tv, 0);
42 return ((long long) tv.tv_usec) +
43 1000000LL * ((long long) tv.tv_sec);
H A Dusb_linux.c291 struct timeval tv; local
320 gettimeofday(&tv, NULL);
321 ts.tv_sec = tv.tv_sec + 5;
322 ts.tv_nsec = tv.tv_usec * 1000L;
/system/core/init/
H A Ddevices.c327 struct timeval tv; local
328 gettimeofday(&tv, 0);
329 return tv.tv_sec * (suseconds_t) 1000000 + tv.tv_usec;
/system/wlan/ti/wilink_6_1/platforms/os/linux/src/
H A Dosapi.c292 struct timeval tv; local
293 do_gettimeofday(&tv);
294 return tv.tv_sec*1000 + tv.tv_usec/1000;
313 struct timeval tv; local
314 do_gettimeofday(&tv);
315 return tv.tv_sec*1000000 + tv.tv_usec;
/system/wlan/ti/sta_dk_4_0_4_32/pform/linux/src/
H A Dosapi.c465 struct timeval tv; local
466 do_gettimeofday(&tv);
467 return tv.tv_sec*1000 + tv.tv_usec/1000;
488 struct timeval tv; local
489 do_gettimeofday(&tv);
490 return tv.tv_sec*1000000 + tv.tv_usec;

Completed in 314 milliseconds