From e7e3d976ef7d89ffc6bd6a53a6ea13ec35bb411d Mon Sep 17 00:00:00 2001 From: Colin Braley Date: Sat, 21 Sep 2019 13:55:05 -0700 Subject: [PATCH] Add missing parenthesis to code sample, and fix spacing. (#877) * Fix missing paren in README code sample, and fix code spacing. * Add Colin Braley to AUTHORS and CONTRIBUTORS. --- AUTHORS | 1 + CONTRIBUTORS | 3 ++- README.md | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/AUTHORS b/AUTHORS index c5e5c0c4..35c4c8ce 100644 --- a/AUTHORS +++ b/AUTHORS @@ -14,6 +14,7 @@ Andriy Berestovskyy Arne Beer Carto Christopher Seymour +Colin Braley Daniel Harvey David Coeurjolly Deniz Evrenci diff --git a/CONTRIBUTORS b/CONTRIBUTORS index e44f6f67..6b64a006 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -29,6 +29,7 @@ Arne Beer Billy Robert O'Neal III Chris Kennelly Christopher Seymour +Colin Braley Cyrille Faucheux Daniel Harvey David Coeurjolly @@ -50,8 +51,8 @@ Joao Paulo Magalhaes John Millikin Jussi Knuuttila Kai Wolf -Kishan Kumar Kaito Udagawa +Kishan Kumar Lei Xu Matt Clarkson Maxim Vafin diff --git a/README.md b/README.md index c9aea0f5..7eaa02a7 100644 --- a/README.md +++ b/README.md @@ -873,7 +873,7 @@ static void MyMain(int size) { static void BM_OpenMP(benchmark::State& state) { for (auto _ : state) - MyMain(state.range(0); + MyMain(state.range(0)); } // Measure the time spent by the main thread, use it to decide for how long to @@ -950,7 +950,7 @@ static void BM_ManualTiming(benchmark::State& state) { auto start = std::chrono::high_resolution_clock::now(); // Simulate some useful workload with a sleep std::this_thread::sleep_for(sleep_duration); - auto end = std::chrono::high_resolution_clock::now(); + auto end = std::chrono::high_resolution_clock::now(); auto elapsed_seconds = std::chrono::duration_cast>(