   Pausing for a certain amount of time
  Noob question i know but...In a c++ win32 console application how can i get my program to wait a few seconds before executing the next statement? 
  Sleep(duration); ;  Is the duration in miliseconds or seconds?Thanks for the reply. ;  milliseconds ;  Ok thanks for helping me out. ;  Eh actualy is there any specific librarys i need to include exept  because the sleep command is generating the error:error C2065: ''sleep'' : undeclared identifier. ;  Sleep. case sensitive. and i believe you have to include windows.h ;  You probably won''t want to use Sleep if you''re using it every frame. You can also use a timer variable, and only execute the command after so much time passes. But if you just need to delay something, Sleep should work. ;  ah ok including windows.h was the problem thanks for your help ;quote:Original post by Jiia  You probably won''t want to use Sleep if you''re using it every frame. You can also use a timer variable, and only execute the command after so much time passes. But if you just need to delay something, Sleep should work.   id like to know how to do a Sleep() in the background process, in a way so that it will just skip a block of code for a certain amount of time. how does this work?? 