diff --git a/benchmarks/benchmark.cpp b/benchmarks/benchmark.cpp index 1e06e30..48b7cd2 100644 --- a/benchmarks/benchmark.cpp +++ b/benchmarks/benchmark.cpp @@ -51,10 +51,10 @@ std::vector time_it_ns(std::vector> &lines, T const &function, size_t repeat) { std::vector aggregate; - collector.start(); bool printed_bug = false; for (size_t i = 0; i < repeat; i++) { - double ts = function(lines); + collector.start(); + auto const ts = function(lines); if (ts == 0 && !printed_bug) { printf("bug\n"); printed_bug = true; @@ -134,7 +134,7 @@ time_it_ns(std::vector> &lines, T const &function, bool printed_bug = false; for (size_t i = 0; i < repeat; i++) { t1 = std::chrono::high_resolution_clock::now(); - const auto ts = function(lines); + auto const ts = function(lines); if (ts == 0 && !printed_bug) { printf("bug\n"); printed_bug = true;