Fix some errors in Custom Statistics demo code. (#1332)

This commit is contained in:
YuanYingdong 2022-01-24 17:51:02 +08:00 committed by GitHub
parent acd7562034
commit 57b2bfa33b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1058,7 +1058,7 @@ void BM_spin_empty(benchmark::State& state) {
BENCHMARK(BM_spin_empty)
->ComputeStatistics("ratio", [](const std::vector<double>& v) -> double {
return std::begin(v) / std::end(v);
}, benchmark::StatisticUnit::Percentage)
}, benchmark::StatisticUnit::kPercentage)
->Arg(512);
```