Searched defs:tv (Results 1 - 15 of 15) 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/libnl_2/
H A Dsocket.c37 struct timeval tv; local
47 if (gettimeofday(&tv, NULL))
50 sk->s_seq_next = (int) tv.tv_sec;
H A Dnetlink.c32 struct timeval tv; local
41 if (gettimeofday(&tv, NULL))
44 nlh->nlmsg_seq = (int) tv.tv_sec;
/system/core/toolbox/
H A Ddate.c49 struct timeval tv; local
114 //tv.tv_sec = mktime(&tm);
115 //tv.tv_usec = 0;
116 strtotimeval(argv[optind], &tv);
117 printf("time %s -> %d.%d\n", argv[optind], tv.tv_sec, tv.tv_usec);
119 ts.tv_sec = tv.tv_sec;
120 ts.tv_nsec = tv.tv_usec * 1000;
122 //res = settimeofday(&tv, NULL);
H A Ddd.c956 #define tv2mS(tv) ((tv).tv_sec * 1000LL + ((tv).tv_usec + 500) / 1000)
963 struct timeval tv; local
968 (void)gettimeofday(&tv, NULL);
969 mS = tv2mS(tv) - tv2mS(st.start);
H A Dnewfs_msdos.c259 struct timeval tv; local
617 gettimeofday(&tv, NULL);
618 now = tv.tv_sec;
674 (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.c54 struct timeval tv; local
55 gettimeofday(&tv, NULL);
56 return (double)tv.tv_sec + (double)tv.tv_usec / 1000000;
/system/core/libnl_2/genl/
H A Dgenl.c54 struct timeval tv; local
70 if (gettimeofday(&tv, NULL))
73 nlh->nlmsg_seq = (int) tv.tv_sec;
/system/core/toolbox/cp/
H A Dutils.c71 static struct timeval tv[2]; local
74 tv[0].tv_sec = fs->st_atime;
75 tv[0].tv_usec = 0;
76 tv[1].tv_sec = fs->st_mtime;
77 tv[1].tv_usec = 0;
79 if (utimes(file, tv)) {
84 TIMESPEC_TO_TIMEVAL(&tv[0], &fs->st_atimespec);
85 TIMESPEC_TO_TIMEVAL(&tv[1], &fs->st_mtimespec);
87 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.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.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/init/
H A Ddevices.c291 struct timeval tv; local
292 gettimeofday(&tv, 0);
293 return tv.tv_sec * (suseconds_t) 1000000 + tv.tv_usec;
/system/security/keystore/
H A Dkeystore.cpp1443 struct timeval tv; local
1444 tv.tv_sec = 3;
1445 setsockopt(sock, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv));
1446 setsockopt(sock, SOL_SOCKET, SO_SNDTIMEO, &tv, sizeof(tv));

Completed in 916 milliseconds