Home
last modified time | relevance | path

Searched refs:diff (Results 1 – 8 of 8) sorted by relevance

/libevent-2.1.12/
H A Dcheckpatch.sh38 -d - treat as regular file and print diff
160 function diff() { command diff --color=always "$@"; } function
168 function clang_format_diff() { cat "$@" | clang-format-diff -p1 -style="$(clang_style)"; }
212 git diff -W $ref^..$ref -- $f | patch_ranges
228 local files=( $(git diff --name-only $ref^..$ref | egrep "\.(c|h)$") )
240 diff -u \
279 diff -u "$@" <(check_file "$@") | diff_substitute "$@"
H A DChangeLog-2.0968 o Use new timeval diff comparison function in bufferevent test (f3dfe46)
/libevent-2.1.12/test/
H A Dregress.h122 #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)
H A Dtest-ratelim.c268 struct timeval diff; in timer_bias_cb() local
272 evutil_timersub(&end, &timer_bias_start, &diff); in timer_bias_cb()
273 timer_bias_spend += diff.tv_sec + diff.tv_usec * 1e6; in timer_bias_cb()
521 double diff = expected_total_persec - in test_ratelimiting() local
523 printf(" [Off by %lf]\n", diff); in test_ratelimiting()
525 fabs(diff) > cfg_grouplimit_tolerance) { in test_ratelimiting()
534 double diff = expected_avg_persec - (((double)total_received)/cfg_duration)/cfg_n_connections; in test_ratelimiting() local
535 printf(" [Off by %lf]\n", diff); in test_ratelimiting()
537 fabs(diff) > cfg_connlimit_tolerance) { in test_ratelimiting()
H A Dtest-changelist.c93 ev_int64_t s, e, diff; in filetime_diff() local
97 diff = e - s; in filetime_diff()
98 r = (double) diff; in filetime_diff()
H A Dbench_httpclient.c87 struct timeval now, diff; in errorcb() local
92 evutil_timersub(&now, &ri->started, &diff); in errorcb()
93 evutil_timeradd(&diff, &total_time, &total_time); in errorcb()
H A Dregress_util.c1433 struct timeval diff; in test_evutil_monotonic_res() local
1435 evutil_timersub(&tv[i+1], &tv[i], &diff); in test_evutil_monotonic_res()
1436 tt_int_op(diff.tv_sec, ==, 0); in test_evutil_monotonic_res()
1437 total_diff += diff.tv_usec; in test_evutil_monotonic_res()
1438 TT_BLATHER(("Difference = %d", (int)diff.tv_usec)); in test_evutil_monotonic_res()
1475 struct timeval diff; in test_evutil_monotonic_prc() local
1477 evutil_timersub(&tv[i+1], &tv[i], &diff); in test_evutil_monotonic_prc()
1478 tt_int_op(diff.tv_sec, ==, 0); in test_evutil_monotonic_prc()
1479 total_diff += diff.tv_usec; in test_evutil_monotonic_prc()
1480 TT_BLATHER(("Step difference = %d", (int)diff.tv_usec)); in test_evutil_monotonic_prc()
H A Dregress_thread.c550 struct timeval diff; in thread_no_events() local
552 evutil_timersub(&times[i], &starttime, &diff); in thread_no_events()
553 sec = diff.tv_sec + diff.tv_usec/1.0e6; in thread_no_events()