aboutsummaryrefslogtreecommitdiff
path: root/include/lib/time.h
diff options
context:
space:
mode:
authorChristian Cunningham <cc@local.lan>2025-03-05 12:58:42 -0800
committerChristian Cunningham <cc@local.lan>2025-03-05 12:58:42 -0800
commit680d8a35ab6cf7b37282f13e8d47756272aee39b (patch)
treefb93bbff4613b98f100cd7d01b7166b9d786adbc /include/lib/time.h
parentcafe6c8f3e8694db5d04195b4b559165f202c46e (diff)
Timing macro
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);