Additionally, as per the MS docs, timeEndPeriod needs to be run when you're done with the same value.
Suggesting defer windows.timeEndPeriod(1) should work for most people.
I don't know the best way to write the updated doc right now, so I'm just making an issue for it.
The current documentation for
time.accurate_sleep
points to the oldsys:win32
. https://github.com/odin-lang/Odin/blob/fc9d3ec5a7246a57bc2a5fc7ac92b4de729da9b8/core/time/time.odin#L240This should be changed to
windows.timeBeginPeriod(1)
.Additionally, as per the MS docs,
timeEndPeriod
needs to be run when you're done with the same value.Suggesting
defer windows.timeEndPeriod(1)
should work for most people.I don't know the best way to write the updated doc right now, so I'm just making an issue for it.