aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGertjan van den Burg <burg@ese.eur.nl>2016-10-06 17:42:41 +0200
committerGertjan van den Burg <burg@ese.eur.nl>2016-10-06 17:42:41 +0200
commitaf81088cf938f388dac201a90b8ef221ee82aef6 (patch)
tree7431e982ce6c89914dda04b4eee61e26cdbd6568 /include
parentCoding style - set all pointers to NULL initially and after free (diff)
downloadgensvm-af81088cf938f388dac201a90b8ef221ee82aef6.tar.gz
gensvm-af81088cf938f388dac201a90b8ef221ee82aef6.zip
change timer functionality to use clock_monotonic_raw
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