aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/gensvm_timer.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/gensvm_timer.h b/include/gensvm_timer.h
index 563576b..5dd4dcb 100644
--- a/include/gensvm_timer.h
+++ b/include/gensvm_timer.h
@@ -15,7 +15,10 @@
// includes
#include "gensvm_globals.h"
+/// Timer macro for easily recording time
+#define Timer(spec) clock_gettime(CLOCK_MONOTONIC_RAW, &spec)
+
// function declarations
-double gensvm_elapsed_time(clock_t s_time, clock_t e_time);
+double gensvm_elapsed_time(struct timespec *start, struct timespec *stop);
#endif