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.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