diff options
author | Eli Bendersky <eliben@gmail.com> | 2015-09-17 20:14:10 -0700 |
---|---|---|
committer | Eli Bendersky <eliben@gmail.com> | 2015-09-17 20:14:10 -0700 |
commit | f338ce7965ab7b90bd8f69a981b8386ab8b54dc5 (patch) | |
tree | a3c265c53ed9cafe5d38e37c76eca244636f1b80 /include/benchmark | |
parent | 47c304536efcc06851cba318ac1b239e1e97430c (diff) | |
download | google-benchmark-f338ce7965ab7b90bd8f69a981b8386ab8b54dc5.tar.gz |
Fix doc sample typos in header and README
* iterations() is a method
* int64_t fix in a couple of places
Diffstat (limited to 'include/benchmark')
-rw-r--r-- | include/benchmark/benchmark_api.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/benchmark/benchmark_api.h b/include/benchmark/benchmark_api.h index a8e8fd8..4d9d5f3 100644 --- a/include/benchmark/benchmark_api.h +++ b/include/benchmark/benchmark_api.h @@ -42,7 +42,8 @@ static void BM_memcpy(benchmark::State& state) { memset(src, 'x', state.range_x()); while (state.KeepRunning()) memcpy(dst, src, state.range_x()); - state.SetBytesProcessed(int64_t_t(state.iterations) * int64(state.range_x())); + state.SetBytesProcessed(int64_t(state.iterations()) * + int64_t(state.range_x())); delete[] src; delete[] dst; } BENCHMARK(BM_memcpy)->Arg(8)->Arg(64)->Arg(512)->Arg(1<<10)->Arg(8<<10); |