aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChristian C <cc@localhost>2025-03-05 12:58:42 -0800
committerChristian C <cc@localhost>2025-03-05 12:58:42 -0800
commit3b4f9ae515f421c6f4509cfe9caa4b2415f1adb9 (patch)
treefb93bbff4613b98f100cd7d01b7166b9d786adbc /include
parent780ec463612e6a7fd61f0bd2ef029836c333922f (diff)
Timing macro
Diffstat (limited to 'include')
-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);