aboutsummaryrefslogtreecommitdiff
path: root/src/utils/time.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/time.h')
-rw-r--r--src/utils/time.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/utils/time.h b/src/utils/time.h
index 6d5f2f6..3e7cf41 100644
--- a/src/utils/time.h
+++ b/src/utils/time.h
@@ -2,6 +2,8 @@
#include <time.h>
-struct timespec time_diff(struct timespec end, struct timespec start);
-struct timespec time_add(struct timespec left, struct timespec right);
-void time_print(struct timespec time);
+typedef struct timespec Time;
+Time time_diff(Time end, Time start);
+Time time_add(Time left, Time right);
+void time_print(Time time);
+Time get_time();