summaryrefslogtreecommitdiffstats
path: root/include/timer.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/timer.h')
-rw-r--r--include/timer.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/timer.h b/include/timer.h
new file mode 100644
index 0000000..37b0fc9
--- /dev/null
+++ b/include/timer.h
@@ -0,0 +1,17 @@
+#ifndef _TIMER_H_
+#define _TIMER_H_
+
+#include <sys/time.h>
+
+struct timer {
+ long credits;
+ struct timeval start;
+ struct timeval stop;
+ struct timeval diff;
+};
+
+#define GET_CREDITS(x) x.credits
+#define GET_STARTTIME(x) x.start
+#define GET_STOPTIME(x) x.stop
+
+#endif