Fix Time.msleep() when inlined in a loop

This commit is contained in:
josh committed 2024-02-20 11:16:34 -05:00
1 parent 2a66443a49
commit 0c82250bd2
1 file changed
+1 -1
+1 -1
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)
{
}