aboutsummaryrefslogtreecommitdiff
path: root/include/lib/time.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/lib/time.h')
-rw-r--r--include/lib/time.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/lib/time.h b/include/lib/time.h
index fd3c6be..9d69b44 100644
--- a/include/lib/time.h
+++ b/include/lib/time.h
@@ -3,6 +3,8 @@
#include <time.h>
+#define TIME(var) struct timespec var;get_time(&var)
+
// Difference in Time
// Compute the difference between timespec structs
double diff_time(struct timespec *time1, struct timespec *time0);