diff options
author | pommicket <pommicket@gmail.com> | 2022-12-09 22:44:51 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2022-12-09 22:44:51 -0500 |
commit | c82287a70f41a96db3639bfa1f0c848f9adc1ab4 (patch) | |
tree | fa45e7a138f27028874bbd4c2317d14e5f78f85b /time.c | |
parent | 8362c840c3c3afefa56ecaef68d1c926c9ee118b (diff) | |
parent | f982cffe0f35276a28e8be19b855a9008107bb77 (diff) |
Merge branch 'trunk' into lsp
Diffstat (limited to 'time.c')
-rw-r--r-- | time.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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); } |