Searched refs:tv (Results 1 - 14 of 14) sorted by relevance
/system/core/fastboot/ |
H A D | util.c | 40 struct timeval tv; local 41 gettimeofday(&tv, NULL); 42 return (double)tv.tv_sec + (double)tv.tv_usec / 1000000;
|
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));
|
/system/core/toolbox/ |
H A D | date.c | 37 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 D | alarm.c | 102 time(&tv.tv_sec); 109 //tv.tv_sec = mktime(&tm); 110 //tv.tv_usec = 0; 120 //strtotimeval(argv[optind], &tv);
|
H A D | newfs_msdos.c | 251 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/dd/ |
H A D | misc.c | 60 #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/upstream-netbsd/bin/cp/ |
H A D | utils.c | 65 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/bionic/libc/other/ |
H A D | test_jpeg.c | 230 struct timeval tv; 231 if (gettimeofday( &tv, NULL ) < 0) 234 return tv.tv_sec*1000000. + tv.tv_usec*1.0;
|
H A D | test_zlib.c | 167 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 D | tombstone.cpp | 720 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/adb/ |
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;
|
H A D | file_sync_client.c | 41 struct timeval tv; local 42 gettimeofday(&tv, 0); 43 return ((long long) tv.tv_usec) + 44 1000000LL * ((long long) tv.tv_sec);
|
/system/core/init/ |
H A D | devices.c | 374 struct timeval tv; local 375 gettimeofday(&tv, 0); 376 return tv.tv_sec * (suseconds_t) 1000000 + tv.tv_usec;
|
/system/extras/tests/framebuffer/ |
H A D | fb_test.c | 47 struct timespec tv, tv2; variable in typeref:struct:timespec
|
Completed in 174 milliseconds