summaryrefslogtreecommitdiff
path: root/time.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-12-07 20:46:57 -0500
committerpommicket <pommicket@gmail.com>2022-12-07 20:46:57 -0500
commitc015373483a98c2bbb2c5fe3cfb081efbe50d43c (patch)
treee327e928ac087347ae2c67a49790ba11867f037b /time.c
parentcff4d007271796b779dc90f8f6b3351a2d93907f (diff)
rename sleep_ns => time_sleep_ns
i don't know why that was inconsistent
Diffstat (limited to 'time.c')
-rw-r--r--time.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/time.c b/time.c
index fdd5278..57ec9dc 100644
--- a/time.c
+++ b/time.c
@@ -56,7 +56,7 @@ static double time_get_seconds(void) {
}
// sleep for a certain number of nanoseconds
-static void sleep_ns(u64 ns) {
+static void time_sleep_ns(u64 ns) {
#if __unix__
struct timespec rem = {0}, req = {
(time_t)(ns / 1000000000),
@@ -73,15 +73,15 @@ static void sleep_ns(u64 ns) {
// sleep for microseconds
static void time_sleep_us(u64 us) {
- sleep_ns(us * 1000);
+ time_sleep_ns(us * 1000);
}
// sleep for milliseconds
static void time_sleep_ms(u64 ms) {
- sleep_ns(ms * 1000000);
+ time_sleep_ns(ms * 1000000);
}
// sleep for seconds
static void time_sleep_s(u64 s) {
- sleep_ns(s * 1000000000);
+ time_sleep_ns(s * 1000000000);
}