aboutsummaryrefslogtreecommitdiff
path: root/include/lib/time.h
diff options
context:
space:
mode:
authorChristian C <cc@localhost>2025-03-04 19:10:07 -0800
committerChristian C <cc@localhost>2025-03-04 19:10:07 -0800
commitc61bb864c026d26a393f2a09c82de9bbc5043c6f (patch)
tree9f589bd8c0fa0823fe04da0753004386f0968844 /include/lib/time.h
parent49412195efd93573eb96ddbae6e41099964fdb65 (diff)
Modularization
Diffstat (limited to 'include/lib/time.h')
-rw-r--r--include/lib/time.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/lib/time.h b/include/lib/time.h
new file mode 100644
index 0000000..aebc6ed
--- /dev/null
+++ b/include/lib/time.h
@@ -0,0 +1,15 @@
+#ifndef INC_LIB_TIME_H
+#define INC_LIB_TIME_H
+
+#include <time.h>
+
+//-----------------------------------------------
+// Difference in Time
+// Compute the difference between timespec structs
+double diff_time(struct timespec *time1, struct timespec *time0);
+
+//-----------------------------------------------
+// Get Current Time
+void get_time(struct timespec *ts);
+
+#endif