From 808765ea3938aafd8dee33ca4b557140a8a7cdde Mon Sep 17 00:00:00 2001 From: Crzyrndm Date: Sun, 29 Jul 2018 15:11:19 +1200 Subject: [PATCH] format as milliseconds --- benchmarks/writer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/benchmarks/writer.cpp b/benchmarks/writer.cpp index acafd27f..c69f138e 100644 --- a/benchmarks/writer.cpp +++ b/benchmarks/writer.cpp @@ -62,7 +62,7 @@ void writer(int cols, int rows) void timer(std::function fn, int cols, int rows) { const auto repeat = std::size_t(3); - std::chrono::duration time{}; + std::chrono::duration time{}; std::cout << cols << " cols " << rows << " rows" << std::endl; fn(rows, cols); // 1 cold run @@ -73,7 +73,7 @@ void timer(std::function fn, int cols, int rows) time += std::chrono::high_resolution_clock::now() - start; } - std::cout << time.count() / repeat << " seconds per iteration" << '\n' << '\n'; + std::cout << time.count() / repeat << " ms per iteration" << '\n' << '\n'; } } // namespace