From 5eb70b128ba1c25b9e711e79bed9fd6dd69fb554 Mon Sep 17 00:00:00 2001 From: Uzair Mohammed Date: Thu, 24 Oct 2024 18:37:53 -0700 Subject: [PATCH] Made reported elapsed time more precise --- benchmark.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/benchmark.cpp b/benchmark.cpp index 449200b..7868e48 100644 --- a/benchmark.cpp +++ b/benchmark.cpp @@ -49,7 +49,7 @@ int main(int argc, char **argv) std::chrono::duration elapsed = end_time - start_time; - printf("Elapsed time is: %.2f seconds\n", elapsed.count()); + printf("Elapsed time is: %.6f seconds\n", elapsed.count()); printf(" Sum result = %lld \n", t);