Searched refs:tv (Results 1 - 12 of 12) sorted by relevance

/system/bt/btif/src/
H A Dbtif_debug.c44 struct timeval tv; local
45 gettimeofday(&tv, NULL);
46 return (tv.tv_sec * 1000000LL) + tv.tv_usec;
/system/core/fastboot/
H A Dutil.c40 struct timeval tv; local
41 gettimeofday(&tv, NULL);
42 return (double)tv.tv_sec + (double)tv.tv_usec / 1000000;
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));
/system/core/toolbox/upstream-netbsd/bin/dd/
H A Dmisc.c60 #define tv2mS(tv) ((tv).tv_sec * 1000LL + ((tv).tv_usec + 500) / 1000)
99 struct timeval tv; local
104 (void)gettimeofday(&tv, NULL);
105 mS = tv2mS(tv) - tv2mS(st.start);
199 struct timeval tv; local
201 (void)gettimeofday(&tv, NULL);
202 mS = tv2mS(tv) - tv2mS(st.start);
/system/bt/hci/src/
H A Dbtsnoop.c141 struct timeval tv; local
142 gettimeofday(&tv, NULL);
145 uint64_t timestamp = tv.tv_sec * 1000 * 1000LL;
146 timestamp += tv.tv_usec;
/system/extras/tests/bionic/libc/other/
H A Dtest_jpeg.c230 struct timeval tv;
231 if (gettimeofday( &tv, NULL ) < 0)
234 return tv.tv_sec*1000000. + tv.tv_usec*1.0;
H A Dtest_zlib.c167 struct timeval tv;
168 if (gettimeofday( &tv, NULL ) < 0)
171 return tv.tv_sec*1000000. + tv.tv_usec*1.0;
/system/core/debuggerd/
H A Dtombstone.cpp765 struct timeval tv; local
766 memset(&tv, 0, sizeof(tv));
767 tv.tv_sec = 1; // tight leash
768 err = setsockopt(amfd, SOL_SOCKET, SO_SNDTIMEO, &tv, sizeof(tv));
770 tv.tv_sec = 3; // 3 seconds on handshake read
771 err = setsockopt(amfd, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv));
/system/core/adb/
H A Dusb_linux.cpp321 struct timeval tv; local
350 gettimeofday(&tv, NULL);
351 ts.tv_sec = tv.tv_sec + 5;
352 ts.tv_nsec = tv.tv_usec * 1000L;
H A Dfile_sync_client.cpp41 struct timeval tv; local
42 gettimeofday(&tv, 0);
43 return ((long long) tv.tv_usec) +
44 1000000LL * ((long long) tv.tv_sec);
/system/extras/tests/framebuffer/
H A Dfb_test.c47 struct timespec tv, tv2; variable in typeref:struct:timespec
/system/core/toolbox/
H A Dnewfs_msdos.c251 struct timeval tv; local
638 gettimeofday(&tv, NULL);
639 now = tv.tv_sec;
692 (u_int)(tv.tv_usec / 10))) << 16 |

Completed in 433 milliseconds