Commit 16a49b00 authored by Stefan Westerfeld's avatar Stefan Westerfeld

Add speed difference debugging output.

Signed-off-by: Stefan Westerfeld's avatarStefan Westerfeld <stefan@space.twc.de>
parent 9e16510d
...@@ -683,8 +683,12 @@ detect_speed (const WavData& in_data, bool print_results) ...@@ -683,8 +683,12 @@ detect_speed (const WavData& in_data, bool print_results)
if (print_results) if (print_results)
{ {
double delta = -1;
if (Params::test_speed > 0)
delta = 100 * fabs (best_speed - Params::test_speed) / Params::test_speed;
printf ("detect_speed %f %.4f ", best_speed, delta);
double total = 0.0; double total = 0.0;
printf ("detect_speed");
for (auto t : speed_search.get_times()) for (auto t : speed_search.get_times())
{ {
total += t; total += t;
......
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