/external/toybox/toys/posix/ |
H A D | sleep.c | 32 struct timespec tv; local 34 tv.tv_sec = xparsetime(*toys.optargs, 1000000000, &tv.tv_nsec); 35 toys.exitval = !!nanosleep(&tv, NULL);
|
H A D | time.c | 28 struct timeval tv, tv2; local 30 gettimeofday(&tv, NULL); 39 if (tv.tv_usec > tv2.tv_usec) { 43 r = (tv2.tv_sec-tv.tv_sec)+((tv2.tv_usec-tv.tv_usec)/1000000.0);
|
H A D | date.c | 138 struct timeval tv; local 148 tv.tv_sec = mktime(&tm); 154 } else tv.tv_sec = mktime(&tm); 155 if (tv.tv_sec == (time_t)-1) goto bad_date; 157 tv.tv_usec = 0; 158 if (settimeofday(&tv, NULL) < 0) perror_msg("cannot set date");
|
/external/mesa3d/src/gallium/auxiliary/os/ |
H A D | os_time.c | 54 struct timeval tv; local 55 gettimeofday(&tv, NULL); 56 return tv.tv_usec + tv.tv_sec*1000000LL;
|
/external/toybox/toys/other/ |
H A D | usleep.c | 20 struct timespec tv; local 23 tv.tv_sec = delay/1000000; 24 tv.tv_nsec = (delay%1000000) * 1000; 25 toys.exitval = !!nanosleep(&tv, NULL);
|
/external/libvncserver/test/ |
H A D | tjutil.c | 61 struct timeval tv; local 62 if(gettimeofday(&tv, NULL)<0) return 0.0; 63 else return (double)tv.tv_sec+((double)tv.tv_usec/1000000.);
|
/external/skia/src/ports/ |
H A D | SkTime_Unix.cpp | 40 struct timeval tv; local 41 gettimeofday(&tv, NULL); 42 return (SkMSec) (tv.tv_sec * 1000 + tv.tv_usec / 1000 ); // microseconds to milliseconds
|
/external/fio/ |
H A D | gettime.h | 25 static inline int fio_gettime_offload(struct timeval *tv) argument 34 last_sec = tv->tv_sec = fio_tv->tv_sec; 35 tv->tv_usec = fio_tv->tv_usec;
|
H A D | time.c | 27 struct timeval tv; local 47 fio_gettime(&tv, NULL); 52 ts = utime_since_now(&tv); 85 struct timeval tv; local 90 fio_gettime(&tv, NULL); 91 if (utime_since(&td->epoch, &tv) >= td->o.ramp_time) { 111 struct timeval tv; local 115 fio_gettime(&tv, NULL); 120 elapsed = utime_since_now(&tv);
|
/external/dhcpcd/ |
H A D | bind.c | 127 struct timeval tv; local 162 if (gettimeofday(&tv, NULL) == 0) 163 lease->leasedfrom = tv.tv_sec;
|
/external/libcxx/src/ |
H A D | chrono.cpp | 32 timeval tv; variable 33 gettimeofday(&tv, 0); 34 return time_point(seconds(tv.tv_sec) + microseconds(tv.tv_usec));
|
/external/openssh/openbsd-compat/ |
H A D | bsd-poll.c | 49 struct timeval tv, *tvp = NULL; local 86 tv.tv_sec = timeout / 1000; 87 tv.tv_usec = (timeout % 1000) * 1000; 88 tvp = &tv;
|
/external/ppp/pppd/plugins/radius/ |
H A D | util.c | 56 struct timeval tv; local 58 tv.tv_sec = (int) msecs / 1000; 59 tv.tv_usec = (msecs % 1000) * 1000; 61 select(0,(fd_set *)NULL,(fd_set *)NULL,(fd_set *)NULL, &tv);
|
/external/ppp/pppd/plugins/rp-pppoe/ |
H A D | debug.c | 91 struct timeval tv; local 99 gettimeofday(&tv, NULL); 100 now = (time_t) tv.tv_sec; 101 millisec = tv.tv_usec / 1000;
|
/external/vboot_reference/firmware/stub/ |
H A D | vboot_api_stub_init.c | 59 struct timeval tv; local 60 gettimeofday(&tv, NULL); 61 return (uint64_t)tv.tv_sec * 1000000 + (uint64_t)tv.tv_usec;
|
/external/e2fsprogs/lib/uuid/ |
H A D | uuid_time.c | 58 struct timeval tv; local 69 tv.tv_sec = clock_reg / 10000000; 70 tv.tv_usec = (clock_reg % 10000000) / 10; 73 *ret_tv = tv; 75 return tv.tv_sec; 124 struct timeval tv; local 137 time_reg = uuid_time(buf, &tv); 166 printf("UUID time is: (%ld, %ld): %s\n", tv.tv_sec, (long)tv.tv_usec,
|
H A D | tst_uuid.c | 75 struct timeval tv; local 142 tv.tv_sec = 0; 143 tv.tv_usec = 0; 144 time_reg = uuid_time(buf, &tv); 146 time_gen, time_reg, tv.tv_sec, (long)tv.tv_usec);
|
/external/valgrind/none/tests/s390x/ |
H A D | test.h | 58 struct timeval tv; local 60 tv.tv_sec = sec; 61 tv.tv_usec = usec; 63 svc5(SYS_select, 0,0,0,0,(unsigned long) &tv);
|
/external/e2fsprogs/lib/ext2fs/ |
H A D | mmp.c | 96 struct timeval tv; local 99 gettimeofday(&tv, 0); 100 mmp_s->mmp_time = tv.tv_sec; 101 fs->mmp_last_written = tv.tv_sec; 132 struct timeval tv; local 134 gettimeofday(&tv, 0); 135 srand((getpid() << 16) ^ getuid() ^ tv.tv_sec ^ tv.tv_usec); 137 gettimeofday(&tv, 0); 139 for (new_seq = (tv 370 struct timeval tv; local [all...] |
/external/iproute2/ip/ |
H A D | rtmon.c | 35 struct timeval tv; local 42 gettimeofday(&tv, NULL); 43 ((__u32*)NLMSG_DATA(n1))[0] = tv.tv_sec; 44 ((__u32*)NLMSG_DATA(n1))[1] = tv.tv_usec;
|
/external/libdrm/freedreno/msm/ |
H A D | msm_priv.h | 87 static inline void get_abs_timeout(struct drm_msm_timespec *tv, uint32_t ms) argument 92 tv->tv_sec = t.tv_sec + s; 93 tv->tv_nsec = t.tv_nsec + ((ms - (s * 1000)) * 1000000);
|
/external/libnfc-nxp/Linux_x86/ |
H A D | phDal4Nfc_i2c.c | 180 struct timeval tv; local 192 tv.tv_sec = 2; 193 tv.tv_usec = 0; 194 ret = select(gI2cPortContext.nHandle + 1, &rfds, NULL, NULL, &tv);
|
/external/libnl/lib/netfilter/ |
H A D | log_msg.c | 101 struct timeval tv; local 103 tv.tv_sec = ntohll(timestamp->sec); 104 tv.tv_usec = ntohll(timestamp->usec); 105 nfnl_log_msg_set_timestamp(msg, &tv);
|
/external/libopus/silk/ |
H A D | debug.c | 59 struct timeval tv; local 60 gettimeofday(&tv, 0); 61 return((tv.tv_sec*1000000)+(tv.tv_usec));
|
/external/libvncserver/vncterm/ |
H A D | VNCommand.c | 58 struct timeval tv,tv1; local 71 tv.tv_sec=0; tv.tv_usec=5000; 101 fs1=fs; tv1=tv;
|