mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-17 04:15:44 +00:00
os: Fix os_nanosleep on Windows.
This commit is contained in:
parent
3351ef5396
commit
d6177777e5
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue