You're right, Sleep(); is better. That's in milliseconds, right? So, Sleep(1000);