| /netbsd/src/tests/lib/librt/ |
| 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() 233 ATF_REQUIRE(sched_rr_get_interval(0, &tv1) == 0); in ATF_TC_BODY() 236 ATF_REQUIRE(tv1.tv_sec != -1); in ATF_TC_BODY() 239 ATF_REQUIRE(tv1.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/tests/lib/libc/sys/ |
| D | t_gettimeofday.c | 63 struct timeval tv1, tv2; in ATF_TC_BODY() local 68 (void)memset(&tv1, 0, sizeof(struct timeval)); in ATF_TC_BODY() 71 ATF_REQUIRE(gettimeofday(&tv1, NULL) == 0); in ATF_TC_BODY() 74 if (timercmp(&tv2, &tv1, <) != 0) in ATF_TC_BODY()
|
| /netbsd/src/crypto/external/bsd/heimdal/dist/lib/krb5/ |
| D | test_rfc3961.c | 43 struct timeval tv1, tv2; in time_encryption() local 69 gettimeofday(&tv1, NULL); in time_encryption() 80 timevalsub(&tv2, &tv1); in time_encryption() 99 struct timeval tv1, tv2; in time_s2k() local 113 gettimeofday(&tv1, NULL); in time_s2k() 125 timevalsub(&tv2, &tv1); in time_s2k()
|
| D | test_crypto.c | 43 struct timeval tv1, tv2; in time_encryption() local 69 gettimeofday(&tv1, NULL); in time_encryption() 80 timevalsub(&tv2, &tv1); in time_encryption() 99 struct timeval tv1, tv2; in time_s2k() local 113 gettimeofday(&tv1, NULL); in time_s2k() 125 timevalsub(&tv2, &tv1); in time_s2k()
|
| /netbsd/src/external/bsd/libevent/dist/test/ |
| 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)
|
| D | regress.c | 3296 struct timeval tv1, tv2, tv3, now; in test_gettimeofday_cached() local 3309 tt_int_op(0, ==, event_base_gettimeofday_cached(NULL, &tv1)); in test_gettimeofday_cached() 3311 tt_int_op(timeval_msec_diff(&tv1, &tv2), <, 10); in test_gettimeofday_cached() 3312 tt_int_op(timeval_msec_diff(&tv1, &now), <, 10); in test_gettimeofday_cached() 3317 ev1 = event_new(base, -1, 0, cache_time_cb, &tv1); in test_gettimeofday_cached() 3328 tt_int_op(labs(timeval_msec_diff(&tv1,&tv2)), >, 10); in test_gettimeofday_cached() 3331 tt_int_op(labs(timeval_msec_diff(&tv1,&tv2)), >, 10); in test_gettimeofday_cached() 3334 tt_assert(evutil_timercmp(&tv1, &tv2, ==)); in test_gettimeofday_cached()
|
| D | regress_util.c | 1364 struct timeval tv1, tv2, tv3, diff1, diff2; in test_evutil_usleep() local 1369 evutil_gettimeofday(&tv1, NULL); in test_evutil_usleep() 1375 evutil_timersub(&tv2, &tv1, &diff1); in test_evutil_usleep()
|
| /netbsd/src/external/bsd/ntp/dist/sntp/libevent/test/ |
| 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)
|
| D | regress.c | 3293 struct timeval tv1, tv2, tv3, now; in test_gettimeofday_cached() local 3306 tt_int_op(0, ==, event_base_gettimeofday_cached(NULL, &tv1)); in test_gettimeofday_cached() 3308 tt_int_op(timeval_msec_diff(&tv1, &tv2), <, 10); in test_gettimeofday_cached() 3309 tt_int_op(timeval_msec_diff(&tv1, &now), <, 10); in test_gettimeofday_cached() 3314 ev1 = event_new(base, -1, 0, cache_time_cb, &tv1); in test_gettimeofday_cached() 3325 tt_int_op(labs(timeval_msec_diff(&tv1,&tv2)), >, 10); in test_gettimeofday_cached() 3328 tt_int_op(labs(timeval_msec_diff(&tv1,&tv2)), >, 10); in test_gettimeofday_cached() 3331 tt_assert(evutil_timercmp(&tv1, &tv2, ==)); in test_gettimeofday_cached()
|
| D | regress_util.c | 1361 struct timeval tv1, tv2, tv3, diff1, diff2; in test_evutil_usleep() local 1366 evutil_gettimeofday(&tv1, NULL); in test_evutil_usleep() 1372 evutil_timersub(&tv2, &tv1, &diff1); in test_evutil_usleep()
|
| /netbsd/src/crypto/external/bsd/heimdal/dist/lib/hcrypto/ |
| D | test_rsa.c | 246 struct timeval tv1, tv2; in main() local 258 gettimeofday(&tv1, NULL); in main() 268 timevalsub(&tv2, &tv1); in main() 282 struct timeval tv1, tv2; in main() local 305 gettimeofday(&tv1, NULL); in main() 310 timevalsub(&tv2, &tv1); in main()
|
| /netbsd/src/crypto/external/bsd/heimdal/dist/kdc/ |
| D | connect.c | 1100 struct timeval tv1; in start_kdc() local 1160 tv1.tv_sec = 0; in start_kdc() 1161 tv1.tv_usec = 0; in start_kdc() 1171 if (tv1.tv_sec == tv2.tv_sec && tv2.tv_usec - tv1.tv_usec < 25000) { in start_kdc() 1210 gettimeofday(&tv1, NULL); in start_kdc() 1224 gettimeofday(&tv1, NULL); in start_kdc() 1225 tv2 = tv1; in start_kdc() 1239 if (tv3.tv_sec - tv1.tv_sec > 10 || in start_kdc() 1240 (tv3.tv_sec - tv1.tv_sec == 10 && tv3.tv_usec >= tv1.tv_usec)) in start_kdc() 1257 if (tv2.tv_sec - tv1.tv_sec > 15 || in start_kdc() [all …]
|
| /netbsd/src/usr.sbin/moused/ |
| D | moused.c | 2128 struct timeval tv1; in r_timestamp() local 2141 gettimeofday(&tv1, NULL); in r_timestamp() 2146 timersub(&tv1, &tv2, &tv); in r_timestamp() 2152 timersub(&tv1, &tv2, &tv3); in r_timestamp() 2167 bstate[i].tv = tv1; in r_timestamp() 2170 bstate[i].tv = tv1; in r_timestamp() 2177 bstate[i].tv = tv1; in r_timestamp() 2194 struct timeval tv1; in r_timeout() local 2199 gettimeofday(&tv1, NULL); in r_timeout() 2202 timersub(&tv1, &tv2, &tv); in r_timeout()
|
| /netbsd/src/external/bsd/ntp/dist/kernel/sys/ |
| D | bsd_audioirig.h | 80 struct timeval tv1,tv2,tv3; /* time stamps (median filter) */ member
|
| /netbsd/src/common/lib/libc/gen/ |
| D | rpst.c | 555 tvdiff(const struct timeval *tv1, const struct timeval *tv2) in tvdiff() argument 558 return (uintmax_t)tv1->tv_sec * 1000000 + tv1->tv_usec - in tvdiff()
|
| /netbsd/src/lib/libc/rpc/ |
| D | svc_vc.c | 572 struct timeval tv0, tv1; in write_vc() local 596 gettimeofday(&tv1, NULL); in write_vc() 597 if (tv1.tv_sec - tv0.tv_sec >= 2) { in write_vc()
|
| /netbsd/src/external/bsd/libbind/dist/tests/ |
| D | dig8.c | 302 struct timeval tv1, tv2, start_time, end_time, query_time; in main() local 398 gettimeofday(&tv1, NULL); in main() 1006 delay = (int)(tv2.tv_sec - tv1.tv_sec); in main() 1010 tv1 = tv2; in main()
|
| /netbsd/src/sys/dev/pcmcia/ |
| D | if_ray.c | 343 static struct timeval rtv, tv1, tv2, *ttp, *ltp; variable 471 ttp = &tv1; in ray_match()
|
| /netbsd/src/external/bsd/libevent/dist/ |
| D | event.c | 1426 is_same_common_timeout(const struct timeval *tv1, const struct timeval *tv2) in is_same_common_timeout() argument 1428 return (tv1->tv_usec & ~MICROSECONDS_MASK) == in is_same_common_timeout()
|
| /netbsd/src/external/bsd/ntp/dist/sntp/libevent/ |
| D | event.c | 1423 is_same_common_timeout(const struct timeval *tv1, const struct timeval *tv2) in is_same_common_timeout() argument 1425 return (tv1->tv_usec & ~MICROSECONDS_MASK) == in is_same_common_timeout()
|