diff options
author | Bobby Bingham <koorogi@koorogi.info> | 2014-10-29 23:47:43 -0500 |
---|---|---|
committer | Bobby Bingham <koorogi@koorogi.info> | 2014-10-29 23:47:43 -0500 |
commit | 765d14cc7c422a2d12e4c0bfac28062da3b927f7 (patch) | |
tree | 2e757d071f8f5ceb950c5576d2f6ccf608d3ab35 | |
parent | d95320cafb6d6b4a65f9713e54d83229cea1bbfa (diff) |
Set output to unbuffered so results are visible sooner
-rw-r--r-- | bench.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); |