diff options
author | A404M <ahmadmahmoudiprogrammer@gmail.com> | 2025-05-11 15:59:43 +0330 |
---|---|---|
committer | A404M <ahmadmahmoudiprogrammer@gmail.com> | 2025-05-11 15:59:43 +0330 |
commit | fe81eba1c232ab99bcfedf9546a82b06c796b086 (patch) | |
tree | 1ddf9d17f14a69c9cbe93cdbb1ef557f812c79d7 /src/utils/time.h | |
parent | 1a50974b834227190f7de3939db5689bb0702a34 (diff) |
some clean ups
Diffstat (limited to 'src/utils/time.h')
-rw-r--r-- | src/utils/time.h | 8 |
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(); |