/system/extras/tests/bionic/libc/other/ |
D | bench_locks.c | 9 struct timeval tv; in now() local 10 gettimeofday(&tv, NULL); in now() 11 return tv.tv_sec + tv.tv_usec/1000000.0; in now()
|
D | test_zlib.c | 167 struct timeval tv; in get_time_usec() 168 if (gettimeofday( &tv, NULL ) < 0) in get_time_usec() 171 return tv.tv_sec*1000000. + tv.tv_usec*1.0; in get_time_usec()
|
D | test_jpeg.c | 230 struct timeval tv; in get_time_usec() 231 if (gettimeofday( &tv, NULL ) < 0) in get_time_usec() 234 return tv.tv_sec*1000000. + tv.tv_usec*1.0; in get_time_usec()
|
/system/core/toolbox/ |
D | date.c | 49 struct timeval tv; in date_main() local 116 strtotimeval(argv[optind], &tv); in date_main() 117 printf("time %s -> %d.%d\n", argv[optind], tv.tv_sec, tv.tv_usec); in date_main() 119 ts.tv_sec = tv.tv_sec; in date_main() 120 ts.tv_nsec = tv.tv_usec * 1000; in date_main()
|
D | dd.c | 956 #define tv2mS(tv) ((tv).tv_sec * 1000LL + ((tv).tv_usec + 500) / 1000) argument 963 struct timeval tv; in summary() local 968 (void)gettimeofday(&tv, NULL); in summary() 969 mS = tv2mS(tv) - tv2mS(st.start); in summary()
|
D | alarm.c | 102 time(&tv.tv_sec); in alarm_main()
|
D | newfs_msdos.c | 259 struct timeval tv; in newfs_msdos_main() local 617 gettimeofday(&tv, NULL); in newfs_msdos_main() 618 now = tv.tv_sec; in newfs_msdos_main() 674 (u_int)(tv.tv_usec / 10))) << 16 | in newfs_msdos_main()
|
/system/core/toolbox/cp/ |
D | utils.c | 71 static struct timeval tv[2]; in set_utimes() local 74 tv[0].tv_sec = fs->st_atime; in set_utimes() 75 tv[0].tv_usec = 0; in set_utimes() 76 tv[1].tv_sec = fs->st_mtime; in set_utimes() 77 tv[1].tv_usec = 0; in set_utimes() 79 if (utimes(file, tv)) { in set_utimes() 84 TIMESPEC_TO_TIMEVAL(&tv[0], &fs->st_atimespec); in set_utimes() 85 TIMESPEC_TO_TIMEVAL(&tv[1], &fs->st_mtimespec); in set_utimes() 87 if (lutimes(file, tv)) { in set_utimes()
|
/system/core/fastboot/ |
D | usbtest.c | 43 struct timeval tv; in NOW() local 44 gettimeofday(&tv, 0); in NOW() 46 return (((long long) tv.tv_sec) * ((long long) 1000000)) + in NOW() 47 (((long long) tv.tv_usec)); in NOW()
|
D | engine.c | 53 struct timeval tv; in now() local 54 gettimeofday(&tv, NULL); in now() 55 return (double)tv.tv_sec + (double)tv.tv_usec / 1000000; in now()
|
/system/core/libnl_2/ |
D | socket.c | 37 struct timeval tv; in _nl_socket_alloc() local 47 if (gettimeofday(&tv, NULL)) in _nl_socket_alloc() 50 sk->s_seq_next = (int) tv.tv_sec; in _nl_socket_alloc()
|
D | netlink.c | 32 struct timeval tv; in nl_send_auto_complete() local 41 if (gettimeofday(&tv, NULL)) in nl_send_auto_complete() 44 nlh->nlmsg_seq = (int) tv.tv_sec; in nl_send_auto_complete()
|
/system/core/debuggerd/ |
D | tombstone.c | 792 struct timeval tv; in activity_manager_connect() local 793 memset(&tv, 0, sizeof(tv)); in activity_manager_connect() 794 tv.tv_sec = 1; // tight leash in activity_manager_connect() 795 err = setsockopt(amfd, SOL_SOCKET, SO_SNDTIMEO, &tv, sizeof(tv)); in activity_manager_connect() 797 tv.tv_sec = 3; // 3 seconds on handshake read in activity_manager_connect() 798 err = setsockopt(amfd, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv)); in activity_manager_connect()
|
/system/core/libnl_2/genl/ |
D | genl.c | 54 struct timeval tv; in genlmsg_put() local 70 if (gettimeofday(&tv, NULL)) in genlmsg_put() 73 nlh->nlmsg_seq = (int) tv.tv_sec; in genlmsg_put()
|
/system/core/adb/ |
D | usb_linux.c | 315 struct timeval tv; in usb_bulk_write() local 344 gettimeofday(&tv, NULL); in usb_bulk_write() 345 ts.tv_sec = tv.tv_sec + 5; in usb_bulk_write() 346 ts.tv_nsec = tv.tv_usec * 1000L; in usb_bulk_write()
|
D | file_sync_client.c | 40 struct timeval tv; in NOW() local 41 gettimeofday(&tv, 0); in NOW() 42 return ((long long) tv.tv_usec) + in NOW() 43 1000000LL * ((long long) tv.tv_sec); in NOW()
|
/system/core/init/ |
D | devices.c | 302 struct timeval tv; in get_usecs() local 303 gettimeofday(&tv, 0); in get_usecs() 304 return tv.tv_sec * (suseconds_t) 1000000 + tv.tv_usec; in get_usecs()
|
/system/extras/tests/framebuffer/ |
D | fb_test.c | 47 struct timespec tv, tv2; variable
|