From 7de0994fdecb98b5a53175fe35e7be37f9e35aa6 Mon Sep 17 00:00:00 2001 From: Yiyao Yu Date: Tue, 4 May 2021 17:53:09 -0400 Subject: [PATCH] Fixed elapsed time formatting for omp benchmarks --- omp/src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/omp/src/main.c b/omp/src/main.c index 2134fa5..46f15be 100644 --- a/omp/src/main.c +++ b/omp/src/main.c @@ -19,7 +19,7 @@ print_time_diff (struct timespec *start, struct timespec *end) nsec += 1000000000; } - printf ("Elapsed time: %ld.%09ld sec\n", sec, nsec); + printf ("Elapsed time: %ld.%09lds\n", sec, nsec); } void