From ddaac8d0c06cbfdf4b1777603e97cedab0e54ead Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 17 Feb 2017 09:58:10 +0100 Subject: Fix and improve parallel traversal --- tests/ingen_bench.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests') diff --git a/tests/ingen_bench.cpp b/tests/ingen_bench.cpp index c8203331..c9eea9ba 100644 --- a/tests/ingen_bench.cpp +++ b/tests/ingen_bench.cpp @@ -173,12 +173,12 @@ main(int argc, char** argv) FILE* log = fopen(out_file.c_str(), "a"); if (ftell(log) == 0) { - fprintf(log, "n_threads\trun_time\tn_frames\n"); + fprintf(log, "# n_threads\trun_time\treal_time\n"); } - fprintf(log, "%u\t%llu\t%u\n", + fprintf(log, "%u\t%f\t%f\n", world->conf().option("threads").get(), - t_end - t_start, - n_test_frames); + (t_end - t_start) / 1000000.0, + (n_test_frames / 48000.0)); fclose(log); // Shut down -- cgit v1.2.1