Searched refs:tv1 (Results 1 - 15 of 15) sorted by relevance

/freebsd-11-stable/contrib/netbsd-tests/lib/libc/sys/
H A Dt_gettimeofday.c65 struct timeval tv1, tv2; local
70 (void)memset(&tv1, 0, sizeof(struct timeval));
73 ATF_REQUIRE(gettimeofday(&tv1, NULL) == 0);
76 if (timercmp(&tv2, &tv1, <) != 0)
/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;
228 ATF_REQUIRE(sched_rr_get_interval(0, &tv1) == 0);
231 ATF_REQUIRE(tv1.tv_sec != -1);
234 ATF_REQUIRE(tv1.tv_nsec != -1);
237 ATF_REQUIRE(tv1.tv_sec == tv2.tv_sec);
238 ATF_REQUIRE(tv1.tv_nsec == tv2.tv_nsec);
/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;
313 if (tv1->tv_usec >= 1000000) {
314 tv1->tv_sec++;
315 tv1->tv_usec -= 1000000;
317 if (tv1->tv_usec < 0) {
318 tv1->tv_sec--;
319 tv1->tv_usec += 1000000;
324 timevalsub(struct timeval *res, struct timeval *tv1, struc argument
[all...]
/freebsd-11-stable/crypto/heimdal/lib/krb5/
H A Dtest_crypto.c41 struct timeval tv1, tv2; local
67 gettimeofday(&tv1, NULL);
78 timevalsub(&tv2, &tv1);
97 struct timeval tv1, tv2; local
111 gettimeofday(&tv1, NULL);
123 timevalsub(&tv2, &tv1);
/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_util.c1251 struct timeval tv1, tv2, tv3, diff1, diff2; local
1256 evutil_gettimeofday(&tv1, NULL);
1262 evutil_timersub(&tv2, &tv1, &diff1);
H A Dregress.c3088 struct timeval tv1, tv2, tv3, now; local
3101 tt_int_op(0, ==, event_base_gettimeofday_cached(NULL, &tv1));
3103 tt_int_op(timeval_msec_diff(&tv1, &tv2), <, 10);
3104 tt_int_op(timeval_msec_diff(&tv1, &now), <, 10);
3109 ev1 = event_new(base, -1, 0, cache_time_cb, &tv1);
3120 tt_int_op(labs(timeval_msec_diff(&tv1,&tv2)), >, 10);
3123 tt_int_op(labs(timeval_msec_diff(&tv1,&tv2)), >, 10);
3126 tt_assert(evutil_timercmp(&tv1, &tv2, ==));
/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/usr.sbin/diskinfo/
H A Ddiskinfo.c338 static struct timeval tv1, tv2; variable in typeref:struct:timeval
349 gettimeofday(&tv1, 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
127 microtime(&tv1);
129 timevalsub(&delta, &tv1);
147 if (tv1.tv_sec > maxtime.tv_sec)
148 maxtime = tv1;
156 if (tv1.tv_sec == laststep.tv_sec)
159 tv->tv_sec = tv1.tv_sec + 1;
/freebsd-11-stable/sbin/ping/
H A Dping.c1142 struct timeval tv1; local
1152 sizeof(tv1)) {
1155 tv1.tv_sec = ntohl(tv32.tv32_sec);
1156 tv1.tv_usec = ntohl(tv32.tv32_usec);
1157 tvsub(tv, &tv1);
/freebsd-11-stable/sys/compat/linux/
H A Dlinux_misc.c503 struct timeval tv0, tv1, utv, *tvp; local
565 microtime(&tv1);
566 timevalsub(&tv1, &tv0);
567 timevalsub(&utv, &tv1);
2271 struct timeval utv, tv0, tv1, *tvp; local
2330 microtime(&tv1);
2331 timevalsub(&tv1, &tv0);
2332 timevalsub(&utv, &tv1);
/freebsd-11-stable/lib/libc/rpc/
H A Dsvc_vc.c516 struct timeval tv0, tv1; local
541 gettimeofday(&tv1, NULL);
542 if (tv1.tv_sec - tv0.tv_sec >= 2) {
/freebsd-11-stable/contrib/gcc/
H A Dc-typeck.c1121 tree tv1 = TYPE_VALUES (t1);
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)
1115 tree tv1 = TYPE_VALUES (t1); 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
1333 return (tv1->tv_usec & ~MICROSECONDS_MASK) ==

Completed in 324 milliseconds