| /freebsd-12-stable/crypto/heimdal/lib/krb5/ |
| D | test_crypto.c | 41 struct timeval tv1, tv2; in time_encryption() local 76 gettimeofday(&tv2, NULL); in time_encryption() 78 timevalsub(&tv2, &tv1); in time_encryption() 82 (long)tv2.tv_sec, (long)tv2.tv_usec); in time_encryption() 97 struct timeval tv1, tv2; in time_s2k() local 121 gettimeofday(&tv2, NULL); in time_s2k() 123 timevalsub(&tv2, &tv1); in time_s2k() 126 etype_name, iterations, (long)tv2.tv_sec, (long)tv2.tv_usec); in time_s2k()
|
| /freebsd-12-stable/contrib/netbsd-tests/lib/librt/ |
| D | t_sched.c | 219 struct timespec tv1, tv2; in ATF_TC_BODY() local 225 tv1.tv_sec = tv2.tv_sec = -1; in ATF_TC_BODY() 226 tv1.tv_nsec = tv2.tv_nsec = -1; in ATF_TC_BODY() 229 ATF_REQUIRE(sched_rr_get_interval(getpid(), &tv2) == 0); in ATF_TC_BODY() 232 ATF_REQUIRE(tv2.tv_sec != -1); in ATF_TC_BODY() 235 ATF_REQUIRE(tv2.tv_nsec != -1); in ATF_TC_BODY() 237 ATF_REQUIRE(tv1.tv_sec == tv2.tv_sec); in ATF_TC_BODY() 238 ATF_REQUIRE(tv1.tv_nsec == tv2.tv_nsec); in ATF_TC_BODY()
|
| /freebsd-12-stable/contrib/netbsd-tests/lib/libc/sys/ |
| D | t_gettimeofday.c | 65 struct timeval tv1, tv2; in ATF_TC_BODY() local 71 (void)memset(&tv2, 0, sizeof(struct timeval)); in ATF_TC_BODY() 74 ATF_REQUIRE(gettimeofday(&tv2, NULL) == 0); in ATF_TC_BODY() 76 if (timercmp(&tv2, &tv1, <) != 0) in ATF_TC_BODY()
|
| /freebsd-12-stable/usr.sbin/timed/timed/ |
| D | measure.c | 311 timevaladd(struct timeval *tv1, struct timeval *tv2) in timevaladd() argument 313 tv1->tv_sec += tv2->tv_sec; in timevaladd() 314 tv1->tv_usec += tv2->tv_usec; in timevaladd() 326 timevalsub(struct timeval *res, struct timeval *tv1, struct timeval *tv2) in timevalsub() argument 328 res->tv_sec = tv1->tv_sec - tv2->tv_sec; in timevalsub() 329 res->tv_usec = tv1->tv_usec - tv2->tv_usec; in timevalsub()
|
| /freebsd-12-stable/contrib/ntp/sntp/libevent/test/ |
| D | regress.h | 122 #define test_timeval_diff_leq(tv1, tv2, diff, tolerance) \ argument 123 tt_int_op(labs(timeval_msec_diff((tv1), (tv2)) - diff), <=, tolerance) 125 #define test_timeval_diff_eq(tv1, tv2, diff) \ argument 126 test_timeval_diff_leq((tv1), (tv2), (diff), 50)
|
| D | regress.c | 717 struct timeval tv, tv2, tv_exit, start; in test_persistent_active_timeout() local 732 tv2.tv_sec = 0; in test_persistent_active_timeout() 733 tv2.tv_usec = 100 * 1000; in test_persistent_active_timeout() 734 event_base_once(base, -1, EV_TIMEOUT, activate_cb, &ev, &tv2); in test_persistent_active_timeout() 2865 struct timeval tv, now, tv2; in test_event_pending() local 2889 tt_assert( event_pending(t, EV_TIMEOUT, &tv2)); in test_event_pending() 2891 tt_assert(evutil_timercmp(&tv2, &now, >)); in test_event_pending() 2893 test_timeval_diff_eq(&now, &tv2, 500); in test_event_pending() 3291 struct timeval tv1, tv2, tv3, now; in test_gettimeofday_cached() local 3305 tt_int_op(0, ==, event_base_gettimeofday_cached(base, &tv2)); in test_gettimeofday_cached() [all …]
|
| D | regress_util.c | 1359 struct timeval tv1, tv2, tv3, diff1, diff2; in test_evutil_usleep() local 1366 evutil_gettimeofday(&tv2, NULL); in test_evutil_usleep() 1370 evutil_timersub(&tv2, &tv1, &diff1); in test_evutil_usleep() 1371 evutil_timersub(&tv3, &tv2, &diff2); in test_evutil_usleep()
|
| /freebsd-12-stable/contrib/libevent/test/ |
| D | regress.h | 122 #define test_timeval_diff_leq(tv1, tv2, diff, tolerance) \ argument 123 tt_int_op(labs(timeval_msec_diff((tv1), (tv2)) - diff), <=, tolerance) 125 #define test_timeval_diff_eq(tv1, tv2, diff) \ argument 126 test_timeval_diff_leq((tv1), (tv2), (diff), 50)
|
| D | regress.c | 717 struct timeval tv, tv2, tv_exit, start; in test_persistent_active_timeout() local 732 tv2.tv_sec = 0; in test_persistent_active_timeout() 733 tv2.tv_usec = 100 * 1000; in test_persistent_active_timeout() 734 event_base_once(base, -1, EV_TIMEOUT, activate_cb, &ev, &tv2); in test_persistent_active_timeout() 2865 struct timeval tv, now, tv2; in test_event_pending() local 2889 tt_assert( event_pending(t, EV_TIMEOUT, &tv2)); in test_event_pending() 2891 tt_assert(evutil_timercmp(&tv2, &now, >)); in test_event_pending() 2893 test_timeval_diff_eq(&now, &tv2, 500); in test_event_pending() 3291 struct timeval tv1, tv2, tv3, now; in test_gettimeofday_cached() local 3305 tt_int_op(0, ==, event_base_gettimeofday_cached(base, &tv2)); in test_gettimeofday_cached() [all …]
|
| D | regress_util.c | 1359 struct timeval tv1, tv2, tv3, diff1, diff2; in test_evutil_usleep() local 1366 evutil_gettimeofday(&tv2, NULL); in test_evutil_usleep() 1370 evutil_timersub(&tv2, &tv1, &diff1); in test_evutil_usleep() 1371 evutil_timersub(&tv3, &tv2, &diff2); in test_evutil_usleep()
|
| /freebsd-12-stable/sys/dev/nand/ |
| D | nandbus.c | 505 struct timeval tv, tv2; in nandbus_wait_ready() local 507 tv2.tv_sec = 0; in nandbus_wait_ready() 508 tv2.tv_usec = 50 * 5000; /* 250ms */ in nandbus_wait_ready() 511 timevaladd(&tv, &tv2); in nandbus_wait_ready() 520 getmicrotime(&tv2); in nandbus_wait_ready() 521 } while (timevalcmp(&tv2, &tv, <=)); in nandbus_wait_ready()
|
| /freebsd-12-stable/contrib/amd/amd/ |
| D | amfs_host.c | 303 struct timeval tv2; in amfs_host_mount() local 393 tv2.tv_sec = 10; in amfs_host_mount() 394 tv2.tv_usec = 0; in amfs_host_mount() 401 tv2); in amfs_host_mount()
|
| /freebsd-12-stable/sys/contrib/libsodium/test/default/ |
| D | pwhash_scrypt.c | 117 tv2(void) in tv2() function 374 tv2(); in main()
|
| D | pwhash_argon2i.c | 107 tv2(void) in tv2() function 402 tv2(); in main()
|
| D | pwhash_argon2id.c | 107 tv2(void) in tv2() function 400 tv2(); in main()
|
| /freebsd-12-stable/usr.sbin/diskinfo/ |
| D | diskinfo.c | 338 static struct timeval tv1, tv2; variable 357 gettimeofday(&tv2, NULL); in delta_t() 358 dt = (tv2.tv_usec - tv1.tv_usec) / 1e6; in delta_t() 359 dt += (tv2.tv_sec - tv1.tv_sec); in delta_t()
|
| /freebsd-12-stable/contrib/ntp/kernel/sys/ |
| D | bsd_audioirig.h | 78 struct timeval tv1,tv2,tv3; /* time stamps (median filter) */ member
|
| /freebsd-12-stable/contrib/libevent/ |
| D | evutil_time.c | 177 struct timeval tv2 = *tv; in evutil_usleep_() local 178 select(0, NULL, NULL, NULL, &tv2); in evutil_usleep_()
|
| D | event.c | 1421 is_same_common_timeout(const struct timeval *tv1, const struct timeval *tv2) in is_same_common_timeout() argument 1424 (tv2->tv_usec & ~MICROSECONDS_MASK); in is_same_common_timeout()
|
| /freebsd-12-stable/contrib/ntp/sntp/libevent/ |
| D | evutil_time.c | 177 struct timeval tv2 = *tv; in evutil_usleep_() local 178 select(0, NULL, NULL, NULL, &tv2); in evutil_usleep_()
|
| D | event.c | 1421 is_same_common_timeout(const struct timeval *tv1, const struct timeval *tv2) in is_same_common_timeout() argument 1424 (tv2->tv_usec & ~MICROSECONDS_MASK); in is_same_common_timeout()
|
| /freebsd-12-stable/sys/kern/ |
| D | kern_time.c | 122 struct timeval delta, tv1, tv2; in settime() local 148 tv2 = *tv; in settime() 149 timevalsub(&tv2, &maxtime); in settime() 150 if (tv2.tv_sec < -1) { in settime()
|
| /freebsd-12-stable/contrib/gcc/ |
| D | c-typeck.c | 1116 tree tv2 = TYPE_VALUES (t2); in tagged_types_tu_compatible_p() local 1118 if (tv1 == tv2) in tagged_types_tu_compatible_p() 1123 for (;tv1 && tv2; tv1 = TREE_CHAIN (tv1), tv2 = TREE_CHAIN (tv2)) in tagged_types_tu_compatible_p() 1125 if (TREE_PURPOSE (tv1) != TREE_PURPOSE (tv2)) in tagged_types_tu_compatible_p() 1127 if (simple_cst_equal (TREE_VALUE (tv1), TREE_VALUE (tv2)) != 1) in tagged_types_tu_compatible_p() 1134 if (tv1 == NULL_TREE && tv2 == NULL_TREE) in tagged_types_tu_compatible_p() 1138 if (tv1 == NULL_TREE || tv2 == NULL_TREE) in tagged_types_tu_compatible_p()
|