From d6177777e5162f5c5e31a804a4acda6d71b163e2 Mon Sep 17 00:00:00 2001 From: Ryan Pavlik Date: Fri, 15 Oct 2021 13:04:55 -0500 Subject: [PATCH] os: Fix os_nanosleep on Windows. --- src/xrt/auxiliary/os/os_time.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xrt/auxiliary/os/os_time.h b/src/xrt/auxiliary/os/os_time.h index d72077a38..b502cbbf3 100644 --- a/src/xrt/auxiliary/os/os_time.h +++ b/src/xrt/auxiliary/os/os_time.h @@ -77,7 +77,7 @@ os_nanosleep(int32_t nsec) spec.tv_nsec = (nsec % U_1_000_000_000); nanosleep(&spec, NULL); #elif defined(XRT_OS_WINDOWS) - Sleep(nsec / 1000); + Sleep(nsec / U_TIME_1MS_IN_NS); #endif }