From 765d14cc7c422a2d12e4c0bfac28062da3b927f7 Mon Sep 17 00:00:00 2001 From: Bobby Bingham Date: Wed, 29 Oct 2014 23:47:43 -0500 Subject: Set output to unbuffered so results are visible sooner --- bench.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bench.c') diff --git a/bench.c b/bench.c index 1317adf..3f77d8d 100644 --- a/bench.c +++ b/bench.c @@ -23,6 +23,8 @@ int main() { struct timespec start, stop; + setvbuf(stdout, NULL, _IONBF, 0); + printf("%-*s ", SORT_WIDTH, ""); for (const struct testcase *t = testcases; t->name; t++) printf("%*s ", TEST_WIDTH, t->name); -- cgit v1.2.3