diff options
author | Birte Kristina Friesel <birte.friesel@uos.de> | 2025-01-16 08:02:52 +0100 |
---|---|---|
committer | Birte Kristina Friesel <birte.friesel@uos.de> | 2025-01-16 08:02:52 +0100 |
commit | f0ec6cec9304ca0dd558cf8ec5777d0bb2da4307 (patch) | |
tree | c6db037237feeab5ee08cb8e31db0e3566d8cd9b /BFS/support/timer.h | |
parent | 93b903081231e0e3f99207384b30606b8c54e12b (diff) |
BFS: Port NMC version (WiP)
Diffstat (limited to 'BFS/support/timer.h')
-rw-r--r-- | BFS/support/timer.h | 13 |
1 files changed, 3 insertions, 10 deletions
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 <sys/time.h> 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 |