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

/bind-9.11.3/lib/isc/unix/
H A Dstdtime.c32 fix_tv_usec(struct timeval *tv) { argument
35 if (tv->tv_usec < 0) {
38 tv->tv_sec -= 1;
39 tv->tv_usec += US_PER_S;
40 } while (tv->tv_usec < 0);
41 } else if (tv->tv_usec >= US_PER_S) {
44 tv->tv_sec += 1;
45 tv->tv_usec -= US_PER_S;
46 } while (tv->tv_usec >=US_PER_S);
58 struct timeval tv; local
[all...]
H A Dtime.c57 fix_tv_usec(struct timeval *tv) { argument
60 if (tv->tv_usec < 0) {
63 tv->tv_sec -= 1;
64 tv->tv_usec += US_PER_S;
65 } while (tv->tv_usec < 0);
66 } else if (tv->tv_usec >= US_PER_S) {
69 tv->tv_sec += 1;
70 tv->tv_usec -= US_PER_S;
71 } while (tv->tv_usec >=US_PER_S);
142 struct timeval tv; local
184 struct timeval tv; local
[all...]
H A Dapp.c445 struct timeval tv, *tvp; local
465 tv.tv_sec = 0;
466 tv.tv_usec = 0;
467 tvp = &tv;
480 tv.tv_sec = us / 1000000;
481 tv.tv_usec = us % 1000000;
482 tvp = &tv;
/bind-9.11.3/contrib/dnsperf-2.1.0.0-1/
H A Dutil.h115 struct timeval tv; local
116 gettimeofday(&tv, NULL);
117 return tv.tv_sec * MILLION + tv.tv_usec;
H A Dos.c64 struct timeval tv, *tvp; local
74 tv.tv_sec = timeout / MILLION;
75 tv.tv_usec = timeout % MILLION;
76 tvp = &tv;
99 struct timeval tv, *tvp; local
116 tv.tv_sec = timeout / MILLION;
117 tv.tv_usec = timeout % MILLION;
118 tvp = &tv;
/bind-9.11.3/bin/tests/pkcs11/benchmarks/
H A Dsession.c69 struct timeval tv; local
74 result = gettimeofday(&tv, NULL);
77 tp->tv_sec = tv.tv_sec;
78 tp->tv_nsec = (long) tv.tv_usec * 1000;
H A Dfind.c71 struct timeval tv; local
76 result = gettimeofday(&tv, NULL);
79 tp->tv_sec = tv.tv_sec;
80 tp->tv_nsec = (long) tv.tv_usec * 1000;
H A Dlogin.c73 struct timeval tv; local
78 result = gettimeofday(&tv, NULL);
81 tp->tv_sec = tv.tv_sec;
82 tp->tv_nsec = (long) tv.tv_usec * 1000;
H A Drandom.c69 struct timeval tv; local
74 result = gettimeofday(&tv, NULL);
77 tp->tv_sec = tv.tv_sec;
78 tp->tv_nsec = (long) tv.tv_usec * 1000;
H A Dsha1.c69 struct timeval tv; local
74 result = gettimeofday(&tv, NULL);
77 tp->tv_sec = tv.tv_sec;
78 tp->tv_nsec = (long) tv.tv_usec * 1000;
H A Dcreate.c73 struct timeval tv; local
78 result = gettimeofday(&tv, NULL);
81 tp->tv_sec = tv.tv_sec;
82 tp->tv_nsec = (long) tv.tv_usec * 1000;
H A Dgenrsa.c73 struct timeval tv; local
78 result = gettimeofday(&tv, NULL);
81 tp->tv_sec = tv.tv_sec;
82 tp->tv_nsec = (long) tv.tv_usec * 1000;
H A Dprivrsa.c73 struct timeval tv; local
78 result = gettimeofday(&tv, NULL);
81 tp->tv_sec = tv.tv_sec;
82 tp->tv_nsec = (long) tv.tv_usec * 1000;
H A Dpubrsa.c73 struct timeval tv; local
78 result = gettimeofday(&tv, NULL);
81 tp->tv_sec = tv.tv_sec;
82 tp->tv_nsec = (long) tv.tv_usec * 1000;
H A Dverify.c73 struct timeval tv; local
78 result = gettimeofday(&tv, NULL);
81 tp->tv_sec = tv.tv_sec;
82 tp->tv_nsec = (long) tv.tv_usec * 1000;
H A Dsign.c73 struct timeval tv; local
78 result = gettimeofday(&tv, NULL);
81 tp->tv_sec = tv.tv_sec;
82 tp->tv_nsec = (long) tv.tv_usec * 1000;
/bind-9.11.3/bin/tests/virtual-time/
H A Dvtwrapper.c125 struct timeval now, tv; local
129 absolute_deflate(&now, &tv);
131 tv.tv_sec += vt->tv_sec;
132 tv.tv_usec += vt->tv_usec;
133 while (tv.tv_usec >= 1000000) {
134 tv.tv_sec += 1;
135 tv.tv_usec -= 1000000;
138 absolute_inflate(&tv, rt);
151 struct timeval now, tv; local
161 tv
185 gettimeofday(struct timeval *tv, struct timezone *tz) argument
210 struct timeval tv; local
[all...]
/bind-9.11.3/bin/named/
H A Dfuzz.c262 struct timeval tv; local
269 tv.tv_sec = 10;
270 tv.tv_usec = 0;
273 rv = select(max, &fds, NULL, NULL, &tv);
/bind-9.11.3/lib/isc/tests/
H A Dsocket_test.c109 struct timeval tv; local
115 tv.tv_sec = 0;
116 tv.tv_usec = 1000 ;
117 if (isc__socketmgr_waitevents(socketmgr, &tv, &swait) > 0)
/bind-9.11.3/unit/atf-src/tools/
H A Dreader.cpp132 struct timeval tv; local
133 tv.tv_sec = string_to_int< long >(t.text().substr(0, divider));
134 tv.tv_usec = string_to_int< long >(t.text().substr(divider + 1));
135 return tv;
172 struct timeval* tv ATF_DEFS_ATTRIBUTE_UNUSED,
198 struct timeval* tv ATF_DEFS_ATTRIBUTE_UNUSED,
H A Datf-report.cpp67 format_tv(struct timeval* tv) argument
70 output << static_cast< long >(tv->tv_sec) << '.'
72 << static_cast< long >(tv->tv_usec);
144 write_tp_end(struct timeval* tv, const std::string& reason) argument
146 const std::string timestamp = format_tv(tv);
166 write_tc_end(const std::string& state, struct timeval* tv, argument
172 (*m_os) << "tc, " << format_tv(tv) << ", " << str << "\n";
236 write_tp_end(struct timeval* tv, const std::string& reason) argument
250 (*m_os) << "[" << format_tv(tv) << "s]\n\n";
266 write_tc_end(const std::string& state, struct timeval* tv, argument
429 write_tp_end(struct timeval* tv, const std::string& reason) argument
456 write_tc_end(const std::string& state, struct timeval* tv, const std::string& reason) argument
536 got_tp_end(struct timeval* tv, const std::string& reason) argument
568 got_tc_end(const std::string& state, struct timeval* tv, const std::string& reason) argument
[all...]
H A Dtest-program.cpp177 struct timeval tv; local
178 if (gettimeofday(&tv, NULL) == -1)
183 static_cast< long >(tv.tv_sec),
184 static_cast< long >(tv.tv_usec));
/bind-9.11.3/contrib/queryperf/
H A Dqueryperf.c1010 set_timenow(struct timeval *tv) { argument
1011 if (gettimeofday(tv, NULL) == -1) {
1014 tv->tv_sec = time(NULL);
1015 tv->tv_usec = 0;
1717 struct timeval tv; local
1735 tv.tv_sec = (long)floor(wait);
1736 tv.tv_usec = (long)(1000000.0 * (wait - floor(wait)));
1738 tv.tv_sec = 0;
1739 tv.tv_usec = 0;
1742 retval = select(maxfd + 1, &read_fds, NULL, NULL, &tv);
[all...]

Completed in 45 milliseconds