<div dir="ltr">Running on windows 10, 32 bit.<div>I believe the problem is that kernel32/Sleep accepts milliseconds, but the function tries to sleep for 0.5ms, which will land as 0 and return immediately. It gets though 50,000,000 in blocks of 500 in a tiny fraction of a second, rather than the 5 whole seconds I expected it to wait for. Simply upping the sleep from 0.5ms to 1ms solved the issue.</div></div>