summaryrefslogtreecommitdiff
path: root/BFS/support/timer.h
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2025-05-14 13:43:55 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2025-05-14 13:43:55 +0200
commit4052d7b4c0e1a59419f07642b9a33088f5745d28 (patch)
tree23fb0907d1ffad55331e0e8fcf71ac2d876f4851 /BFS/support/timer.h
parentaed00e149b8a3677a89416eaa112ea6c5249150b (diff)
BFS: AspectC++ (and behaviour model) support
Diffstat (limited to 'BFS/support/timer.h')
-rw-r--r--BFS/support/timer.h31
1 files changed, 0 insertions, 31 deletions
diff --git a/BFS/support/timer.h b/BFS/support/timer.h
deleted file mode 100644
index 63b5567..0000000
--- a/BFS/support/timer.h
+++ /dev/null
@@ -1,31 +0,0 @@
-
-#ifndef _TIMER_H_
-#define _TIMER_H_
-
-#include <stdio.h>
-#include <sys/time.h>
-
-typedef struct Timer {
- struct timeval startTime[8];
- struct timeval stopTime[8];
- double time[8];
-} Timer;
-
-static void startTimer(Timer *timer, int i, int rep)
-{
- if (rep == 0) {
- timer->time[i] = 0.0;
- }
- gettimeofday(&timer->startTime[i], NULL);
-}
-
-static void stopTimer(Timer *timer, int i)
-{
- gettimeofday(&timer->stopTime[i], NULL);
- timer->time[i] +=
- (timer->stopTime[i].tv_sec -
- timer->startTime[i].tv_sec) * 1000000.0 +
- (timer->stopTime[i].tv_usec - timer->startTime[i].tv_usec);
-}
-
-#endif