Home
last modified time | relevance | path

Searched refs:tv2 (Results 1 – 25 of 26) sorted by relevance

12

/netbsd-src/crypto/external/bsd/heimdal/dist/lib/krb5/
H A Dtest_crypto.c43 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 Dtest_rfc3961.c43 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 Dt_sched.c224 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 Dtest_rsa.c246 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 Dt_gettimeofday.c63 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 Dregress.h124 #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 Dregress.c721 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 Dregress_util.c1364 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 Dconnect.c1101 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 Damfs_host.c305 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 Dpwhash_scrypt.c117 tv2(void) in tv2() function
374 tv2(); in main()
H A Dpwhash_argon2i.c107 tv2(void) in tv2() function
401 tv2(); in main()
H A Dpwhash_argon2id.c107 tv2(void) in tv2() function
400 tv2(); in main()
/netbsd-src/usr.sbin/moused/
H A Dmoused.c2129 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 Dbsd_audioirig.h80 struct timeval tv1,tv2,tv3; /* time stamps (median filter) */ member
/netbsd-src/common/lib/libc/gen/
H A Drpst.c555 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 Devutil_time.c180 struct timeval tv2 = *tv; in evutil_usleep_() local
181 select(0, NULL, NULL, NULL, &tv2); in evutil_usleep_()
H A Devent.c1426 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 Dtimevar.cc752 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 Dtimevar.c754 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 Ddig8.c302 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 Dc-typeck.c1467 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 Dif_ray.c343 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 Dc-typeck.cc1481 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 Ddcast.c3115 TypeVector *tv2 = (TypeVector *)t2; in typeMerge() local
3116 if (!tv1->basetype->equals(tv2->basetype)) in typeMerge()

12