Searched refs:tv (Results 1 - 10 of 10) sorted by relevance

/bind-9.6-ESV-R11/lib/isc/unix/
H A Dstdtime.c41 fix_tv_usec(struct timeval *tv) { argument
44 if (tv->tv_usec < 0) {
47 tv->tv_sec -= 1;
48 tv->tv_usec += US_PER_S;
49 } while (tv->tv_usec < 0);
50 } else if (tv->tv_usec >= US_PER_S) {
53 tv->tv_sec += 1;
54 tv->tv_usec -= US_PER_S;
55 } while (tv->tv_usec >=US_PER_S);
67 struct timeval tv; local
[all...]
H A Dtime.c62 fix_tv_usec(struct timeval *tv) { argument
65 if (tv->tv_usec < 0) {
68 tv->tv_sec -= 1;
69 tv->tv_usec += US_PER_S;
70 } while (tv->tv_usec < 0);
71 } else if (tv->tv_usec >= US_PER_S) {
74 tv->tv_sec += 1;
75 tv->tv_usec -= US_PER_S;
76 } while (tv->tv_usec >=US_PER_S);
147 struct timeval tv; local
189 struct timeval tv; local
[all...]
H A Dapp.c308 struct timeval tv, *tvp; local
315 tv.tv_sec = 0;
316 tv.tv_usec = 0;
317 tvp = &tv;
330 tv.tv_sec = us / 1000000;
331 tv.tv_usec = us % 1000000;
332 tvp = &tv;
H A Dsocket.c1104 struct timeval tv;
1106 memmove(&tv, timevalp, sizeof(tv));
1107 dev->timestamp.seconds = tv.tv_sec;
1108 dev->timestamp.nanoseconds = tv.tv_usec * 1000;
/bind-9.6-ESV-R11/unit/atf-src/atf-report/
H A Datf-report.cpp70 format_tv(struct timeval* tv) argument
73 output << static_cast< long >(tv->tv_sec) << '.'
75 << static_cast< long >(tv->tv_usec);
147 write_tp_end(struct timeval* tv, const std::string& reason) argument
149 const std::string timestamp = format_tv(tv);
169 write_tc_end(const std::string& state, struct timeval* tv, argument
175 (*m_os) << "tc, " << format_tv(tv) << ", " << str << "\n";
239 write_tp_end(struct timeval* tv, const std::string& reason) argument
253 (*m_os) << "[" << format_tv(tv) << "s]\n\n";
269 write_tc_end(const std::string& state, struct timeval* tv, argument
432 write_tp_end(struct timeval* tv, const std::string& reason) argument
459 write_tc_end(const std::string& state, struct timeval* tv, const std::string& reason) argument
539 got_tp_end(struct timeval* tv, const std::string& reason) argument
571 got_tc_end(const std::string& state, struct timeval* tv, const std::string& reason) argument
[all...]
H A Dreader.cpp133 struct timeval tv; local
134 tv.tv_sec = string_to_int< long >(t.text().substr(0, divider));
135 tv.tv_usec = string_to_int< long >(t.text().substr(divider + 1));
136 return tv;
173 struct timeval* tv ATF_DEFS_ATTRIBUTE_UNUSED,
199 struct timeval* tv ATF_DEFS_ATTRIBUTE_UNUSED,
H A Dreader_test.cpp68 got_tp_end(struct timeval* tv ATF_DEFS_ATTRIBUTE_UNUSED,
82 struct timeval* tv ATF_DEFS_ATTRIBUTE_UNUSED,
/bind-9.6-ESV-R11/contrib/zkt/
H A Dlog.c386 struct timeval tv; local
411 gettimeofday (&tv, NULL);
412 t = localtime ((time_t *) &tv.tv_sec);
416 t->tm_hour, t->tm_min, t->tm_sec, tv.tv_usec / 1000);
/bind-9.6-ESV-R11/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...]
/bind-9.6-ESV-R11/unit/atf-src/atf-run/
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));

Completed in 41 milliseconds