From c9e3a4b2816ad23aa201a4f43f357a376947bd49 Mon Sep 17 00:00:00 2001 From: Jesper Jensen Date: Mon, 16 Feb 2026 21:43:36 +0100 Subject: INITIAL COMMIT --- src/mytime.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/mytime.h (limited to 'src/mytime.h') diff --git a/src/mytime.h b/src/mytime.h new file mode 100644 index 0000000..48eba06 --- /dev/null +++ b/src/mytime.h @@ -0,0 +1,12 @@ +#pragma once + +#include +#include + +#define TIME_JOIN(H, M, S) ((H) * 3600 + (M) * 60 + (S)) +#define TIME_AS_FLOAT(T) (((double)T.tv_sec) + ((double)T.tv_nsec / 1000000000.0)) + +struct timespec get_current_time(); + +void enable_fake_time(); +void progress_time(uint64_t diff); -- cgit v1.2.3