Skip to content

Commit

Permalink
Fix benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
aacostadiaz committed Jan 10, 2025
1 parent b0a56f5 commit 714a47d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions benchmarks/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ auto benchmark_main(int argc, const char **argv) -> int {

std::stringstream benchmark_name;
benchmark_name << benchmark_config << "/" << options.benchmark_name();
benchmark::RegisterBenchmark(benchmark_name.str(), runner, options, hw_info)->UseManualTime();
::benchmark::RegisterBenchmark(benchmark_name.str(), runner, options, hw_info)->UseManualTime();
return 0;
}

Expand Down Expand Up @@ -163,11 +163,11 @@ int main(int argc, const char** argv) {
file.close();

int argc_bm = 0;
benchmark::SetDefaultTimeUnit(benchmark::kMillisecond);
benchmark::Initialize(&argc_bm, nullptr);
::benchmark::SetDefaultTimeUnit(::benchmark::kMillisecond);
::benchmark::Initialize(&argc_bm, nullptr);

benchmark::RunSpecifiedBenchmarks();
benchmark::Shutdown();
::benchmark::RunSpecifiedBenchmarks();
::benchmark::Shutdown();

return 0;
}

0 comments on commit 714a47d

Please sign in to comment.