Fix Time.msleep() when inlined in a loop

This commit is contained in:
Josh Holtrop 2024-02-20 11:16:34 -05:00
parent 2a66443a49
commit 0c82250bd2

View File

@ -34,7 +34,7 @@ struct Time
*/
public static void msleep(ulong count)
{
ulong wait_for = s_uptime + count + 1;
ulong wait_for = uptime() + count + 1;
while (uptime() < wait_for)
{
}