diff options
author | A404M <ahmadmahmoudiprogrammer@gmail.com> | 2024-12-28 08:03:23 +0330 |
---|---|---|
committer | A404M <ahmadmahmoudiprogrammer@gmail.com> | 2024-12-28 08:03:23 +0330 |
commit | d7802371b56734446a16962363322282ba772257 (patch) | |
tree | 8b5a62d12b080381e4a512b107e675a3ad14186b /src/utils/time.h | |
parent | 55d29d0df8681efe01e88e0475c8512c44ec4bc4 (diff) |
added many stuff which I can't even remember
Diffstat (limited to 'src/utils/time.h')
-rw-r--r-- | src/utils/time.h | 9 |
1 files changed, 9 insertions, 0 deletions
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 <stdint.h> + +constexpr int64_t NANO_TO_SECOND = 1000000000; + +int64_t nano_sleep(uint64_t nano_seconds); + +int64_t nano_time(); |