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

/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/core/toolbox/
H A Ddate.c37 static int settime_alarm_timeval(struct timeval *tv) { argument
40 ts.tv_sec = tv->tv_sec;
41 ts.tv_nsec = tv->tv_usec * 1000;
47 struct timeval tv; local
54 tv.tv_sec = mktime(tm);
55 tv.tv_usec = 0;
57 ret = settimeofday(&tv, NULL);
78 static int settime_rtc_timeval(struct timeval *tv) { argument
80 time_t t = tv->tv_sec;
147 struct timeval tv; local
[all...]
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 |
/system/core/toolbox/upstream-netbsd/bin/cp/
H A Dutils.c65 static struct timeval tv[2]; local
68 tv[0].tv_sec = fs->st_atime;
69 tv[0].tv_usec = 0;
70 tv[1].tv_sec = fs->st_mtime;
71 tv[1].tv_usec = 0;
73 if (utimes(file, tv)) {
78 TIMESPEC_TO_TIMEVAL(&tv[0], &fs->st_atimespec);
79 TIMESPEC_TO_TIMEVAL(&tv[1], &fs->st_mtimespec);
81 if (lutimes(file, tv)) {
/system/extras/tests/framebuffer/
H A Dfb_test.c47 struct timespec tv, tv2; variable in typeref:struct:timespec
/system/core/adb/
H A Dfile_sync_client.c41 struct timeval tv; local
42 gettimeofday(&tv, 0);
43 return ((long long) tv.tv_usec) +
44 1000000LL * ((long long) tv.tv_sec);
H A Dusb_linux.c315 struct timeval tv; local
344 gettimeofday(&tv, NULL);
345 ts.tv_sec = tv.tv_sec + 5;
346 ts.tv_nsec = tv.tv_usec * 1000L;
/system/core/debuggerd/
H A Dtombstone.cpp720 struct timeval tv; local
721 memset(&tv, 0, sizeof(tv));
722 tv.tv_sec = 1; // tight leash
723 err = setsockopt(amfd, SOL_SOCKET, SO_SNDTIMEO, &tv, sizeof(tv));
725 tv.tv_sec = 3; // 3 seconds on handshake read
726 err = setsockopt(amfd, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv));
/system/core/init/
H A Ddevices.c374 struct timeval tv; local
375 gettimeofday(&tv, 0);
376 return tv.tv_sec * (suseconds_t) 1000000 + tv.tv_usec;

Completed in 330 milliseconds