Welcome to the new platform of Programmers Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use it's exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
I am trying to create a very simple console app game. When I run the game the console screen goes all wacko because the game operates to fast. I tried using this function:[color=Blue][code]
. . .
[color=Green]#define DELAY 0.1[/color][color=Orange]//I think 0.1 is about right[/color]
. . .
while(difftime(time(NULL),then) < DELAY);
but [color=Blue]pause()[/color] waited for 0.5 seconds in stead of 0.1 witch is to slow. Is there any way to wait less than 0.5 seconds
I am working in windows XP and using minGW-3.1.0-1 as a compiler.