aboutsummaryrefslogtreecommitdiff
path: root/include/lib/time.h
diff options
context:
space:
mode:
authorChristian Cunningham <cc@local.lan>2025-03-04 19:10:07 -0800
committerChristian Cunningham <cc@local.lan>2025-03-04 19:10:07 -0800
commit8e719bf59a78559b5128cefa0479c71245cbdcb2 (patch)
tree9f589bd8c0fa0823fe04da0753004386f0968844 /include/lib/time.h
parent3e1246d3da2bfdee08f92b35677f991622e43768 (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