mirror of
https://github.com/google/benchmark.git
synced 2024-12-26 20:40:21 +08: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 New Issue
Block a user