mirror of
https://github.com/google/benchmark.git
synced 2024-11-28 05:44:40 +00:00
[docs] Use benchmark::IterationCount
rather than int64_t
in lambda to complexity (#940)
This commit is contained in:
parent
8982e1ee6a
commit
168604d8f8
|
@ -622,7 +622,7 @@ that might be used to customize high-order term calculation.
|
|||
|
||||
```c++
|
||||
BENCHMARK(BM_StringCompare)->RangeMultiplier(2)
|
||||
->Range(1<<10, 1<<18)->Complexity([](int64_t n)->double{return n; });
|
||||
->Range(1<<10, 1<<18)->Complexity([](benchmark::IterationCount n)->double{return n; });
|
||||
```
|
||||
|
||||
<a name="templated-benchmarks" />
|
||||
|
|
Loading…
Reference in a new issue