Commit 689ae2a1 authored by Stefan Westerfeld's avatar Stefan Westerfeld

Print total speed detection time for performance debugging.

Signed-off-by: Stefan Westerfeld's avatarStefan Westerfeld <stefan@space.twc.de>
parent 3d3a07c0
...@@ -625,10 +625,14 @@ detect_speed (const WavData& in_data, bool print_results) ...@@ -625,10 +625,14 @@ detect_speed (const WavData& in_data, bool print_results)
if (print_results) if (print_results)
{ {
double total = 0.0;
printf ("detect_speed"); printf ("detect_speed");
for (auto t : speed_search.get_times()) for (auto t : speed_search.get_times())
printf (" %.3f", t); {
printf ("\n"); total += t;
printf (" %.3f", t);
}
printf (" %.3f\n", total);
} }
#if 0 #if 0
if (print_results) if (print_results)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment