/freebsd-12-stable/contrib/netbsd-tests/lib/libc/sys/ |
H A D | t_gettimeofday.c | 65 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-12-stable/contrib/netbsd-tests/lib/librt/ |
H A D | t_sched.c | 219 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-12-stable/usr.sbin/timed/timed/ |
H A D | measure.c | 311 timevaladd(struct timeval *tv1, struct timeval *tv2) argument 313 tv1->tv_sec += tv2->tv_sec; 314 tv1->tv_usec += tv2->tv_usec; 315 if (tv1->tv_usec >= 1000000) { 316 tv1->tv_sec++; 317 tv1->tv_usec -= 1000000; 319 if (tv1->tv_usec < 0) { 320 tv1->tv_sec--; 321 tv1->tv_usec += 1000000; 326 timevalsub(struct timeval *res, struct timeval *tv1, struc argument [all...] |
/freebsd-12-stable/crypto/heimdal/lib/krb5/ |
H A D | test_crypto.c | 41 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-12-stable/contrib/ntp/sntp/libevent/test/ |
H A D | regress.h | 120 #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 D | regress_util.c | 1251 struct timeval tv1, tv2, tv3, diff1, diff2; local 1256 evutil_gettimeofday(&tv1, NULL); 1262 evutil_timersub(&tv2, &tv1, &diff1);
|
H A D | regress.c | 3088 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-12-stable/contrib/libevent/test/ |
H A D | regress.h | 120 #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 D | regress_util.c | 1251 struct timeval tv1, tv2, tv3, diff1, diff2; local 1256 evutil_gettimeofday(&tv1, NULL); 1262 evutil_timersub(&tv2, &tv1, &diff1);
|
H A D | regress.c | 3219 struct timeval tv1, tv2, tv3, now; local 3232 tt_int_op(0, ==, event_base_gettimeofday_cached(NULL, &tv1)); 3234 tt_int_op(timeval_msec_diff(&tv1, &tv2), <, 10); 3235 tt_int_op(timeval_msec_diff(&tv1, &now), <, 10); 3240 ev1 = event_new(base, -1, 0, cache_time_cb, &tv1); 3251 tt_int_op(labs(timeval_msec_diff(&tv1,&tv2)), >, 10); 3254 tt_int_op(labs(timeval_msec_diff(&tv1,&tv2)), >, 10); 3257 tt_assert(evutil_timercmp(&tv1, &tv2, ==));
|
/freebsd-12-stable/contrib/ntp/kernel/sys/ |
H A D | bsd_audioirig.h | 78 struct timeval tv1,tv2,tv3; /* time stamps (median filter) */ member in struct:auib
|
/freebsd-12-stable/usr.sbin/diskinfo/ |
H A D | diskinfo.c | 338 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-12-stable/sys/kern/ |
H A D | kern_time.c | 122 struct timeval delta, tv1, tv2; local 126 microtime(&tv1); 128 timevalsub(&delta, &tv1); 146 if (tv1.tv_sec > maxtime.tv_sec) 147 maxtime = tv1; 155 if (tv1.tv_sec == laststep.tv_sec) 158 tv->tv_sec = tv1.tv_sec + 1;
|
/freebsd-12-stable/sbin/ping/ |
H A D | ping.c | 1174 struct timespec tv1; local 1181 sizeof(tv1)) { 1184 tv1.tv_sec = ntohl(tv32.tv32_sec); 1185 tv1.tv_nsec = ntohl(tv32.tv32_nsec); 1186 timespecsub(tv, &tv1, tv);
|
/freebsd-12-stable/sys/compat/linux/ |
H A D | linux_misc.c | 488 struct timeval tv0, tv1, utv, *tvp; local 533 microtime(&tv1); 534 timevalsub(&tv1, &tv0); 535 timevalsub(&utv, &tv1); 2149 struct timeval utv, tv0, tv1, *tvp; local 2208 microtime(&tv1); 2209 timevalsub(&tv1, &tv0); 2210 timevalsub(&utv, &tv1);
|
/freebsd-12-stable/lib/libc/rpc/ |
H A D | svc_vc.c | 518 struct timeval tv0, tv1; local 543 gettimeofday(&tv1, NULL); 544 if (tv1.tv_sec - tv0.tv_sec >= 2) {
|
/freebsd-12-stable/contrib/gcc/ |
H A D | c-typeck.c | 1121 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-12-stable/contrib/ntp/sntp/libevent/ |
H A D | event.c | 1328 /* 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) ==
|
/freebsd-12-stable/contrib/libevent/ |
H A D | event.c | 1375 /* True iff tv1 and tv2 have the same common-timeout index, or if neither 1378 is_same_common_timeout(const struct timeval *tv1, const struct timeval *tv2) argument 1380 return (tv1->tv_usec & ~MICROSECONDS_MASK) ==
|