Searched refs:tv2 (Results 1 - 14 of 14) sorted by relevance

/freebsd-11-stable/contrib/netbsd-tests/lib/libc/sys/
H A Dt_gettimeofday.c65 struct timeval tv1, tv2; local
71 (void)memset(&tv2, 0, sizeof(struct timeval));
74 ATF_REQUIRE(gettimeofday(&tv2, NULL) == 0);
76 if (timercmp(&tv2, &tv1, <) != 0)
/freebsd-11-stable/crypto/heimdal/lib/krb5/
H A Dtest_crypto.c41 struct timeval tv1, tv2; local
76 gettimeofday(&tv2, NULL);
78 timevalsub(&tv2, &tv1);
82 (long)tv2.tv_sec, (long)tv2.tv_usec);
97 struct timeval tv1, tv2; local
121 gettimeofday(&tv2, NULL);
123 timevalsub(&tv2, &tv1);
126 etype_name, iterations, (long)tv2.tv_sec, (long)tv2
[all...]
/freebsd-11-stable/contrib/netbsd-tests/lib/librt/
H A Dt_sched.c219 struct timespec tv1, tv2; local
225 tv1.tv_sec = tv2.tv_sec = -1;
226 tv1.tv_nsec = tv2.tv_nsec = -1;
229 ATF_REQUIRE(sched_rr_get_interval(getpid(), &tv2) == 0);
232 ATF_REQUIRE(tv2.tv_sec != -1);
235 ATF_REQUIRE(tv2.tv_nsec != -1);
237 ATF_REQUIRE(tv1.tv_sec == tv2.tv_sec);
238 ATF_REQUIRE(tv1.tv_nsec == tv2.tv_nsec);
/freebsd-11-stable/contrib/ntp/sntp/libevent/test/
H A Dregress.h120 #define test_timeval_diff_leq(tv1, tv2, diff, tolerance) \
121 tt_int_op(labs(timeval_msec_diff((tv1), (tv2)) - diff), <=, tolerance)
123 #define test_timeval_diff_eq(tv1, tv2, diff) \
124 test_timeval_diff_leq((tv1), (tv2), (diff), 50)
H A Dregress.c669 struct timeval tv, tv2, tv_exit, start; local
684 tv2.tv_sec = 0;
685 tv2.tv_usec = 100 * 1000;
686 event_base_once(base, -1, EV_TIMEOUT, activate_cb, &ev, &tv2);
2691 struct timeval tv, now, tv2; local
2715 tt_assert( event_pending(t, EV_TIMEOUT, &tv2));
2717 tt_assert(evutil_timercmp(&tv2, &now, >));
2719 test_timeval_diff_eq(&now, &tv2, 500);
3088 struct timeval tv1, tv2, tv3, now; local
3102 tt_int_op(0, ==, event_base_gettimeofday_cached(base, &tv2));
[all...]
H A Dregress_util.c1251 struct timeval tv1, tv2, tv3, diff1, diff2; local
1258 evutil_gettimeofday(&tv2, NULL);
1262 evutil_timersub(&tv2, &tv1, &diff1);
1263 evutil_timersub(&tv3, &tv2, &diff2);
/freebsd-11-stable/usr.sbin/timed/timed/
H A Dmeasure.c309 timevaladd(struct timeval *tv1, struct timeval *tv2) argument
311 tv1->tv_sec += tv2->tv_sec;
312 tv1->tv_usec += tv2->tv_usec;
324 timevalsub(struct timeval *res, struct timeval *tv1, struct timeval *tv2) argument
326 res->tv_sec = tv1->tv_sec - tv2->tv_sec;
327 res->tv_usec = tv1->tv_usec - tv2->tv_usec;
/freebsd-11-stable/sys/dev/nand/
H A Dnandbus.c503 struct timeval tv, tv2; local
505 tv2.tv_sec = 0;
506 tv2.tv_usec = 50 * 5000; /* 250ms */
509 timevaladd(&tv, &tv2);
518 getmicrotime(&tv2);
519 } while (timevalcmp(&tv2, &tv, <=));
/freebsd-11-stable/contrib/ntp/kernel/sys/
H A Dbsd_audioirig.h78 struct timeval tv1,tv2,tv3; /* time stamps (median filter) */ member in struct:auib
/freebsd-11-stable/contrib/amd/amd/
H A Damfs_host.c303 struct timeval tv2; local
393 tv2.tv_sec = 10;
394 tv2.tv_usec = 0;
401 tv2);
/freebsd-11-stable/usr.sbin/diskinfo/
H A Ddiskinfo.c338 static struct timeval tv1, tv2; variable in typeref:struct:
357 gettimeofday(&tv2, NULL);
358 dt = (tv2.tv_usec - tv1.tv_usec) / 1e6;
359 dt += (tv2.tv_sec - tv1.tv_sec);
/freebsd-11-stable/sys/kern/
H A Dkern_time.c123 struct timeval delta, tv1, tv2; local
149 tv2 = *tv;
150 timevalsub(&tv2, &maxtime);
151 if (tv2.tv_sec < -1) {
/freebsd-11-stable/contrib/gcc/
H A Dc-typeck.c1122 tree tv2 = TYPE_VALUES (t2);
1124 if (tv1 == tv2)
1129 for (;tv1 && tv2; tv1 = TREE_CHAIN (tv1), tv2 = TREE_CHAIN (tv2))
1131 if (TREE_PURPOSE (tv1) != TREE_PURPOSE (tv2))
1133 if (simple_cst_equal (TREE_VALUE (tv1), TREE_VALUE (tv2)) != 1)
1140 if (tv1 == NULL_TREE && tv2 == NULL_TREE)
1144 if (tv1 == NULL_TREE || tv2 == NULL_TREE)
1116 tree tv2 = TYPE_VALUES (t2); local
/freebsd-11-stable/contrib/ntp/sntp/libevent/
H A Devent.c1328 /* True iff tv1 and tv2 have the same common-timeout index, or if neither
1331 is_same_common_timeout(const struct timeval *tv1, const struct timeval *tv2) argument
1334 (tv2->tv_usec & ~MICROSECONDS_MASK);

Completed in 287 milliseconds