/freebsd/contrib/ntp/sntp/libevent/test/ |
H A D | regress_rpc.c | 740 struct timeval tv_start, tv_end; in rpc_test() local 801 evutil_gettimeofday(&tv_end, NULL); in rpc_test() 802 evutil_timersub(&tv_end, &tv_start, &tv_end); in rpc_test() 804 (float)tv_end.tv_sec/(float)i * 1000000.0 + in rpc_test() 805 tv_end.tv_usec / (float)i)); in rpc_test()
|
H A D | regress_http.c | 3109 struct timeval tv_start, tv_end; in http_incomplete_test_() local 3136 evutil_gettimeofday(&tv_end, NULL); in http_incomplete_test_() 3137 evutil_timersub(&tv_end, &tv_start, &tv_end); in http_incomplete_test_() 3147 if (use_timeout && tv_end.tv_sec >= 3) { in http_incomplete_test_() 3149 } else if (!use_timeout && tv_end.tv_sec >= 1) { in http_incomplete_test_() 3325 struct timeval tv_start, tv_end; in http_chunk_out_test_impl() local 3358 evutil_gettimeofday(&tv_end, NULL); in http_chunk_out_test_impl() 3359 evutil_timersub(&tv_end, &tv_start, &tv_end); in http_chunk_out_test_impl() 3361 tt_int_op(tv_end.tv_sec, <, 1); in http_chunk_out_test_impl() 3719 struct timeval tv, tv_start, tv_end; in http_connection_retry_test_basic() local [all …]
|
H A D | regress.c | 1032 struct timeval tv_start, tv_end; in del_wait_thread() local 1036 evutil_gettimeofday(&tv_end, NULL); in del_wait_thread() 1038 test_timeval_diff_eq(&tv_start, &tv_end, 300); in del_wait_thread() 1076 struct timeval tv_start, tv_end; in test_del_wait() local 1079 evutil_gettimeofday(&tv_end, NULL); in test_del_wait() 1080 test_timeval_diff_eq(&tv_start, &tv_end, 270); in test_del_wait() 2036 struct timeval tv, tv_start, tv_end; in test_loopexit() local 2052 evutil_gettimeofday(&tv_end, NULL); in test_loopexit() 2059 test_timeval_diff_eq(&tv_start, &tv_end, 300); in test_loopexit() 2069 struct timeval tv, tv_start, tv_end; in test_loopexit_multiple() local [all …]
|
/freebsd/contrib/libevent/test/ |
H A D | regress_rpc.c | 740 struct timeval tv_start, tv_end; in rpc_test() local 801 evutil_gettimeofday(&tv_end, NULL); in rpc_test() 802 evutil_timersub(&tv_end, &tv_start, &tv_end); in rpc_test() 804 (float)tv_end.tv_sec/(float)i * 1000000.0 + in rpc_test() 805 tv_end.tv_usec / (float)i)); in rpc_test()
|
H A D | regress_http.c | 3109 struct timeval tv_start, tv_end; in http_incomplete_test_() local 3136 evutil_gettimeofday(&tv_end, NULL); in http_incomplete_test_() 3137 evutil_timersub(&tv_end, &tv_start, &tv_end); in http_incomplete_test_() 3147 if (use_timeout && tv_end.tv_sec >= 3) { in http_incomplete_test_() 3149 } else if (!use_timeout && tv_end.tv_sec >= 1) { in http_incomplete_test_() 3325 struct timeval tv_start, tv_end; in http_chunk_out_test_impl() local 3358 evutil_gettimeofday(&tv_end, NULL); in http_chunk_out_test_impl() 3359 evutil_timersub(&tv_end, &tv_start, &tv_end); in http_chunk_out_test_impl() 3361 tt_int_op(tv_end.tv_sec, <, 1); in http_chunk_out_test_impl() 3719 struct timeval tv, tv_start, tv_end; in http_connection_retry_test_basic() local [all …]
|
H A D | regress.c | 1032 struct timeval tv_start, tv_end; in del_wait_thread() local 1036 evutil_gettimeofday(&tv_end, NULL); in del_wait_thread() 1038 test_timeval_diff_eq(&tv_start, &tv_end, 300); in del_wait_thread() 1076 struct timeval tv_start, tv_end; in test_del_wait() local 1079 evutil_gettimeofday(&tv_end, NULL); in test_del_wait() 1080 test_timeval_diff_eq(&tv_start, &tv_end, 270); in test_del_wait() 2036 struct timeval tv, tv_start, tv_end; in test_loopexit() local 2052 evutil_gettimeofday(&tv_end, NULL); in test_loopexit() 2059 test_timeval_diff_eq(&tv_start, &tv_end, 300); in test_loopexit() 2069 struct timeval tv, tv_start, tv_end; in test_loopexit_multiple() local [all …]
|
/freebsd/usr.sbin/watchdogd/ |
H A D | watchdogd.c | 289 struct timeval tv_start, tv_end, tv_now, tv; in watchdog_check_dogfunction_time() local 298 TIMESPEC_TO_TIMEVAL(&tv_end, tp_end); in watchdog_check_dogfunction_time() 299 timersub(&tv_end, &tv_start, &tv); in watchdog_check_dogfunction_time()
|
/freebsd/sys/net/altq/ |
H A D | altq_subr.c | 942 struct timeval tv_start, tv_end; in init_machclk() local 950 microtime(&tv_end); in init_machclk() 952 diff = (u_int64_t)(tv_end.tv_sec - tv_start.tv_sec) * 1000000 in init_machclk() 953 + tv_end.tv_usec - tv_start.tv_usec; in init_machclk()
|