[*] Added call to Win32DropSchedulerResolution under sleep

This commit is contained in:
Reece Wilson 2023-10-19 02:48:56 +01:00
parent 7324a59e5b
commit 09401cecd6

View File

@ -63,6 +63,8 @@ namespace Aurora::Threading
auto endTimeWall = AuTime::CurrentClockNS() + qwTimeout;
auto targetTimeNt = AuTime::ConvertTimestampNs(endTimeWall);
Win32DropSchedulerResolution();
while (AuTime::SteadyClockNS() < endTimeSteady)
{
LARGE_INTEGER word;