From f0ec6cec9304ca0dd558cf8ec5777d0bb2da4307 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Thu, 16 Jan 2025 08:02:52 +0100 Subject: BFS: Port NMC version (WiP) --- BFS/support/timer.h | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'BFS/support/timer.h') diff --git a/BFS/support/timer.h b/BFS/support/timer.h index 80719cf..466ad95 100644 --- a/BFS/support/timer.h +++ b/BFS/support/timer.h @@ -6,9 +6,9 @@ #include typedef struct Timer { - struct timeval startTime[5]; - struct timeval stopTime[5]; - double time[5]; + struct timeval startTime[8]; + struct timeval stopTime[8]; + double time[8]; } Timer; static void startTimer(Timer *timer, int i, int rep) { @@ -24,11 +24,4 @@ static void stopTimer(Timer *timer, int i) { (timer->stopTime[i].tv_usec - timer->startTime[i].tv_usec); } -static void printAll(Timer *timer, int maxt) { - for (int i = 0; i <= maxt; i++) { - printf(" timer%d_us=%f", i, timer->time[i]); - } - printf("\n"); -} - #endif -- cgit v1.2.3