mirror of https://github.com/google/benchmark.git
Fix some errors in Custom Statistics demo code. (#1332)
This commit is contained in:
parent
acd7562034
commit
57b2bfa33b
|
@ -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);
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in New Issue