summaryrefslogtreecommitdiff
path: root/src/utils/time.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/time.h')
-rw-r--r--src/utils/time.h9
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();