Searched defs:tv (Results 1 - 25 of 222) sorted by relevance

123456789

/external/toybox/toys/posix/
H A Dsleep.c32 struct timespec tv; local
34 tv.tv_sec = xparsetime(*toys.optargs, 1000000000, &tv.tv_nsec);
35 toys.exitval = !!nanosleep(&tv, NULL);
H A Dtime.c28 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 Ddate.c138 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 Dos_time.c54 struct timeval tv; local
55 gettimeofday(&tv, NULL);
56 return tv.tv_usec + tv.tv_sec*1000000LL;
/external/toybox/toys/other/
H A Dusleep.c20 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 Dtjutil.c61 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 DSkTime_Unix.cpp40 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 Dgettime.h25 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 Dtime.c27 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 Dbind.c127 struct timeval tv; local
162 if (gettimeofday(&tv, NULL) == 0)
163 lease->leasedfrom = tv.tv_sec;
/external/libcxx/src/
H A Dchrono.cpp32 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 Dbsd-poll.c49 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 Dutil.c56 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 Ddebug.c91 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 Dvboot_api_stub_init.c59 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 Duuid_time.c58 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 Dtst_uuid.c75 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 Dtest.h58 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 Dmmp.c96 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 Drtmon.c35 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 Dmsm_priv.h87 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 DphDal4Nfc_i2c.c180 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 Dlog_msg.c101 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 Ddebug.c59 struct timeval tv; local
60 gettimeofday(&tv, 0);
61 return((tv.tv_sec*1000000)+(tv.tv_usec));
/external/libvncserver/vncterm/
H A DVNCommand.c58 struct timeval tv,tv1; local
71 tv.tv_sec=0; tv.tv_usec=5000;
101 fs1=fs; tv1=tv;

Completed in 2292 milliseconds

123456789