os: Fix os_nanosleep on Windows.

This commit is contained in:
Ryan Pavlik 2021-10-15 13:04:55 -05:00
parent 3351ef5396
commit d6177777e5

View file

@ -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
}