diff --git a/README.md b/README.md index 6268dead..83d1b81e 100644 --- a/README.md +++ b/README.md @@ -165,6 +165,7 @@ static void BM_MultiThreaded(benchmark::State& state) { } } BENCHMARK(BM_MultiThreaded)->Threads(2); +``` To prevent a value or expression from being optimized away by the compiler the `benchmark::DoNotOptimize(...)` function can be used.