summaryrefslogtreecommitdiff
path: root/BFS/support/timer.h
diff options
context:
space:
mode:
authorBirte Kristina Friesel <birte.friesel@uos.de>2025-01-16 08:02:52 +0100
committerBirte Kristina Friesel <birte.friesel@uos.de>2025-01-16 08:02:52 +0100
commitf0ec6cec9304ca0dd558cf8ec5777d0bb2da4307 (patch)
treec6db037237feeab5ee08cb8e31db0e3566d8cd9b /BFS/support/timer.h
parent93b903081231e0e3f99207384b30606b8c54e12b (diff)
BFS: Port NMC version (WiP)
Diffstat (limited to 'BFS/support/timer.h')
-rw-r--r--BFS/support/timer.h13
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