Perform CPU sleep when using Sleep() function

This commit is contained in:
Alex 2022-11-04 20:52:38 +02:00
parent a5fdf14f0d
commit 4af2b199f4
Signed by untrusted user who does not match committer: enderice2
GPG Key ID: EACC3AD603BAB4DD

View File

@ -17,7 +17,7 @@ namespace Time
#if defined(__amd64__) || defined(__i386__)
uint64_t Target = mminq(&((HPET *)hpet)->MainCounterValue) + (Milliseconds * 1000000000) / clk;
while (mminq(&((HPET *)hpet)->MainCounterValue) < Target)
;
CPU::Pause();
#elif defined(__aarch64__)
#endif
}