| /netbsd-src/crypto/external/bsd/heimdal/dist/lib/krb5/ |
| H A D | test_crypto.c | 43 struct timeval tv1, tv2; in time_encryption() local 78 gettimeofday(&tv2, NULL); in time_encryption() 80 timevalsub(&tv2, &tv1); in time_encryption() 84 (long)tv2.tv_sec, (long)tv2.tv_usec); in time_encryption() 99 struct timeval tv1, tv2; in time_s2k() local 123 gettimeofday(&tv2, NULL); in time_s2k() 125 timevalsub(&tv2, &tv1); in time_s2k() 128 etype_name, iterations, (long)tv2.tv_sec, (long)tv2.tv_usec); in time_s2k()
|
| H A D | test_rfc3961.c | 43 struct timeval tv1, tv2; in time_encryption() local 78 gettimeofday(&tv2, NULL); in time_encryption() 80 timevalsub(&tv2, &tv1); in time_encryption() 84 (long)tv2.tv_sec, (long)tv2.tv_usec); in time_encryption() 99 struct timeval tv1, tv2; in time_s2k() local 123 gettimeofday(&tv2, NULL); in time_s2k() 125 timevalsub(&tv2, &tv1); in time_s2k() 128 etype_name, iterations, (long)tv2.tv_sec, (long)tv2.tv_usec); in time_s2k()
|
| /netbsd-src/tests/lib/librt/ |
| H A D | t_sched.c | 224 struct timespec tv1, tv2; in ATF_TC_BODY() local 230 tv1.tv_sec = tv2.tv_sec = -1; in ATF_TC_BODY() 231 tv1.tv_nsec = tv2.tv_nsec = -1; in ATF_TC_BODY() 234 ATF_REQUIRE(sched_rr_get_interval(getpid(), &tv2) == 0); in ATF_TC_BODY() 237 ATF_REQUIRE(tv2.tv_sec != -1); in ATF_TC_BODY() 240 ATF_REQUIRE(tv2.tv_nsec != -1); in ATF_TC_BODY() 242 ATF_REQUIRE(tv1.tv_sec == tv2.tv_sec); in ATF_TC_BODY() 243 ATF_REQUIRE(tv1.tv_nsec == tv2.tv_nsec); in ATF_TC_BODY()
|
| /netbsd-src/crypto/external/bsd/heimdal/dist/lib/hcrypto/ |
| H A D | test_rsa.c | 246 struct timeval tv1, tv2; in main() local 267 gettimeofday(&tv2, NULL); in main() 268 timevalsub(&tv2, &tv1); in main() 271 (unsigned long)tv2.tv_sec, in main() 272 (unsigned long)tv2.tv_usec); in main() 282 struct timeval tv1, tv2; in main() local 308 gettimeofday(&tv2, NULL); in main() 310 timevalsub(&tv2, &tv1); in main() 313 (unsigned long)tv2.tv_sec, in main() 314 (unsigned long)tv2.tv_usec); in main()
|
| /netbsd-src/tests/lib/libc/sys/ |
| H A D | t_gettimeofday.c | 63 struct timeval tv1, tv2; in ATF_TC_BODY() local 69 (void)memset(&tv2, 0, sizeof(struct timeval)); in ATF_TC_BODY() 72 ATF_REQUIRE(gettimeofday(&tv2, NULL) == 0); in ATF_TC_BODY() 74 if (timercmp(&tv2, &tv1, <) != 0) in ATF_TC_BODY()
|
| /netbsd-src/external/bsd/libevent/dist/test/ |
| H A D | regress.h | 124 #define test_timeval_diff_leq(tv1, tv2, diff, tolerance) \ argument 125 tt_int_op(labs(timeval_msec_diff((tv1), (tv2)) - diff), <=, tolerance) 127 #define test_timeval_diff_eq(tv1, tv2, diff) \ argument 128 test_timeval_diff_leq((tv1), (tv2), (diff), 50)
|
| H A D | regress.c | 721 struct timeval tv, tv2, tv_exit, start; in test_persistent_active_timeout() local 736 tv2.tv_sec = 0; in test_persistent_active_timeout() 737 tv2.tv_usec = 100 * 1000; in test_persistent_active_timeout() 738 event_base_once(base, -1, EV_TIMEOUT, activate_cb, &ev, &tv2); in test_persistent_active_timeout() 2869 struct timeval tv, now, tv2; in test_event_pending() local 2893 tt_assert( event_pending(t, EV_TIMEOUT, &tv2)); in test_event_pending() 2895 tt_assert(evutil_timercmp(&tv2, &now, >)); in test_event_pending() 2897 test_timeval_diff_eq(&now, &tv2, 500); in test_event_pending() 3296 struct timeval tv1, tv2, tv3, now; in test_gettimeofday_cached() local 3310 tt_int_op(0, ==, event_base_gettimeofday_cached(base, &tv2)); in test_gettimeofday_cached() [all …]
|
| H A D | regress_util.c | 1364 struct timeval tv1, tv2, tv3, diff1, diff2; in test_evutil_usleep() local 1371 evutil_gettimeofday(&tv2, NULL); in test_evutil_usleep() 1375 evutil_timersub(&tv2, &tv1, &diff1); in test_evutil_usleep() 1376 evutil_timersub(&tv3, &tv2, &diff2); in test_evutil_usleep()
|
| /netbsd-src/crypto/external/bsd/heimdal/dist/kdc/ |
| H A D | connect.c | 1101 struct timeval tv2; in start_kdc() local 1170 gettimeofday(&tv2, NULL); in start_kdc() 1171 if (tv1.tv_sec == tv2.tv_sec && tv2.tv_usec - tv1.tv_usec < 25000) { in start_kdc() 1225 tv2 = tv1; in start_kdc() 1242 if (tv3.tv_sec - tv2.tv_sec > 1 || in start_kdc() 1243 (tv3.tv_sec - tv2.tv_sec == 1 && tv3.tv_usec >= tv2.tv_usec)) { in start_kdc() 1245 tv2 = tv3; in start_kdc() 1256 gettimeofday(&tv2, NULL); in start_kdc() 1257 if (tv2.tv_sec - tv1.tv_sec > 15 || in start_kdc() 1258 (tv2.tv_sec - tv1.tv_sec == 15 && tv2.tv_usec >= tv1.tv_usec)) in start_kdc()
|
| /netbsd-src/external/bsd/am-utils/dist/amd/ |
| H A D | amfs_host.c | 305 struct timeval tv2; in amfs_host_mount() local 395 tv2.tv_sec = 10; in amfs_host_mount() 396 tv2.tv_usec = 0; in amfs_host_mount() 403 tv2); in amfs_host_mount()
|
| /netbsd-src/sys/external/isc/libsodium/dist/test/default/ |
| H A D | pwhash_scrypt.c | 117 tv2(void) in tv2() function 374 tv2(); in main()
|
| H A D | pwhash_argon2i.c | 107 tv2(void) in tv2() function 401 tv2(); in main()
|
| H A D | pwhash_argon2id.c | 107 tv2(void) in tv2() function 400 tv2(); in main()
|
| /netbsd-src/usr.sbin/moused/ |
| H A D | moused.c | 2129 struct timeval tv2; in r_timestamp() local 2144 tv2.tv_sec = rodent.clickthreshold/1000; in r_timestamp() 2145 tv2.tv_usec = (rodent.clickthreshold%1000)*1000; in r_timestamp() 2146 timersub(&tv1, &tv2, &tv); in r_timestamp() 2150 tv2.tv_sec = rodent.button2timeout/1000; in r_timestamp() 2151 tv2.tv_usec = (rodent.button2timeout%1000)*1000; in r_timestamp() 2152 timersub(&tv1, &tv2, &tv3); in r_timestamp() 2195 struct timeval tv2; in r_timeout() local 2200 tv2.tv_sec = rodent.button2timeout/1000; in r_timeout() 2201 tv2.tv_usec = (rodent.button2timeout%1000)*1000; in r_timeout() [all …]
|
| /netbsd-src/external/bsd/ntp/dist/kernel/sys/ |
| H A D | bsd_audioirig.h | 80 struct timeval tv1,tv2,tv3; /* time stamps (median filter) */ member
|
| /netbsd-src/common/lib/libc/gen/ |
| H A D | rpst.c | 555 tvdiff(const struct timeval *tv1, const struct timeval *tv2) in tvdiff() argument 559 tv2->tv_sec * 1000000 - tv2->tv_usec; in tvdiff()
|
| /netbsd-src/external/bsd/libevent/dist/ |
| H A D | evutil_time.c | 180 struct timeval tv2 = *tv; in evutil_usleep_() local 181 select(0, NULL, NULL, NULL, &tv2); in evutil_usleep_()
|
| H A D | event.c | 1426 is_same_common_timeout(const struct timeval *tv1, const struct timeval *tv2) in is_same_common_timeout() argument 1429 (tv2->tv_usec & ~MICROSECONDS_MASK); in is_same_common_timeout()
|
| /netbsd-src/external/gpl3/gcc/dist/gcc/ |
| H A D | timevar.cc | 752 timevar_def *tv2 = (*i).first; in print() local 758 snprintf (lname, 256, "`- %s", tv2->name); in print()
|
| /netbsd-src/external/gpl3/gcc.old/dist/gcc/ |
| H A D | timevar.c | 754 timevar_def *tv2 = (*i).first; in print() local 760 snprintf (lname, 256, "`- %s", tv2->name); in print()
|
| /netbsd-src/external/bsd/libbind/dist/tests/ |
| H A D | dig8.c | 302 struct timeval tv1, tv2, start_time, end_time, query_time; in main() local 1005 gettimeofday(&tv2, NULL); in main() 1006 delay = (int)(tv2.tv_sec - tv1.tv_sec); in main() 1010 tv1 = tv2; in main()
|
| /netbsd-src/external/gpl3/gcc.old/dist/gcc/c/ |
| H A D | c-typeck.c | 1467 tree tv2 = TYPE_VALUES (t2); in tagged_types_tu_compatible_p() local 1469 if (tv1 == tv2) in tagged_types_tu_compatible_p() 1474 for (;tv1 && tv2; tv1 = TREE_CHAIN (tv1), tv2 = TREE_CHAIN (tv2)) in tagged_types_tu_compatible_p() 1476 if (TREE_PURPOSE (tv1) != TREE_PURPOSE (tv2)) in tagged_types_tu_compatible_p() 1478 if (simple_cst_equal (TREE_VALUE (tv1), TREE_VALUE (tv2)) != 1) in tagged_types_tu_compatible_p() 1485 if (tv1 == NULL_TREE && tv2 == NULL_TREE) in tagged_types_tu_compatible_p() 1489 if (tv1 == NULL_TREE || tv2 == NULL_TREE) in tagged_types_tu_compatible_p()
|
| /netbsd-src/sys/dev/pcmcia/ |
| H A D | if_ray.c | 343 static struct timeval rtv, tv1, tv2, *ttp, *ltp; variable 472 ltp = &tv2; in ray_match()
|
| /netbsd-src/external/gpl3/gcc/dist/gcc/c/ |
| H A D | c-typeck.cc | 1481 tree tv2 = TYPE_VALUES (t2); in tagged_types_tu_compatible_p() local 1483 if (tv1 == tv2) in tagged_types_tu_compatible_p() 1488 for (;tv1 && tv2; tv1 = TREE_CHAIN (tv1), tv2 = TREE_CHAIN (tv2)) in tagged_types_tu_compatible_p() 1490 if (TREE_PURPOSE (tv1) != TREE_PURPOSE (tv2)) in tagged_types_tu_compatible_p() 1492 if (simple_cst_equal (TREE_VALUE (tv1), TREE_VALUE (tv2)) != 1) in tagged_types_tu_compatible_p() 1499 if (tv1 == NULL_TREE && tv2 == NULL_TREE) in tagged_types_tu_compatible_p() 1503 if (tv1 == NULL_TREE || tv2 == NULL_TREE) in tagged_types_tu_compatible_p()
|
| /netbsd-src/external/gpl3/gcc.old/dist/gcc/d/dmd/ |
| H A D | dcast.c | 3115 TypeVector *tv2 = (TypeVector *)t2; in typeMerge() local 3116 if (!tv1->basetype->equals(tv2->basetype)) in typeMerge()
|