mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-18 08:32:11 +01:00
Flush "puffs bench"'s stdout.
This commit is contained in:
1 parent
50e091f976
commit
4b4473cc91
1 file changed
+3
@@ -84,6 +84,9 @@ void bench_finish(uint64_t reps, uint64_t n_bytes) {
|
||||
name, cc, reps, nanos / reps, //
|
||||
(int)(kb_per_s / 1000), (int)(kb_per_s % 1000));
|
||||
}
|
||||
// Flush stdout so that "puffs bench | tee etc" still prints its numbers as
|
||||
// soon as they are available.
|
||||
fflush(stdout);
|
||||
}
|
||||
|
||||
int main(int argc, char** argv) {
|
||||
|
||||
Reference in new issue
Block a user