Searched defs:tv (Results 1 - 15 of 15) sorted by relevance
/system/extras/tests/bionic/libc/other/ |
H A D | bench_locks.c | 9 struct timeval tv; local 10 gettimeofday(&tv, NULL); 11 return tv.tv_sec + tv.tv_usec/1000000.0;
|
/system/core/libnl_2/ |
H A D | socket.c | 37 struct timeval tv; local 47 if (gettimeofday(&tv, NULL)) 50 sk->s_seq_next = (int) tv.tv_sec;
|
H A D | netlink.c | 32 struct timeval tv; local 41 if (gettimeofday(&tv, NULL)) 44 nlh->nlmsg_seq = (int) tv.tv_sec;
|
/system/core/toolbox/ |
H A D | date.c | 49 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 D | dd.c | 956 #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 D | newfs_msdos.c | 259 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 D | usbtest.c | 43 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 D | engine.c | 54 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 D | genl.c | 54 struct timeval tv; local 70 if (gettimeofday(&tv, NULL)) 73 nlh->nlmsg_seq = (int) tv.tv_sec;
|
/system/core/toolbox/cp/ |
H A D | utils.c | 71 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 D | fb_test.c | 47 struct timespec tv, tv2; variable in typeref:struct:timespec
|
/system/core/adb/ |
H A D | file_sync_client.c | 40 struct timeval tv; local 41 gettimeofday(&tv, 0); 42 return ((long long) tv.tv_usec) + 43 1000000LL * ((long long) tv.tv_sec);
|
H A D | usb_linux.c | 315 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 D | devices.c | 291 struct timeval tv; local 292 gettimeofday(&tv, 0); 293 return tv.tv_sec * (suseconds_t) 1000000 + tv.tv_usec;
|
/system/security/keystore/ |
H A D | keystore.cpp | 1443 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