From d7802371b56734446a16962363322282ba772257 Mon Sep 17 00:00:00 2001 From: A404M Date: Sat, 28 Dec 2024 08:03:23 +0330 Subject: added many stuff which I can't even remember --- src/utils/time.h | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/utils/time.h (limited to 'src/utils/time.h') diff --git a/src/utils/time.h b/src/utils/time.h new file mode 100644 index 0000000..f7e9361 --- /dev/null +++ b/src/utils/time.h @@ -0,0 +1,9 @@ +#pragma once + +#include + +constexpr int64_t NANO_TO_SECOND = 1000000000; + +int64_t nano_sleep(uint64_t nano_seconds); + +int64_t nano_time(); -- cgit v1.2.3