View Full Version : c++ sleep
Nblufire12
02-01-2009, 05:27 AM
hey guys
im new to C++
but Java i know a little more
I'm looking for a sleep() function to wait in seconds or ms.
any help for that in C++?
oesxyl
02-01-2009, 06:03 AM
hey guys
im new to C++
but Java i know a little more
I'm looking for a sleep() function to wait in seconds or ms.
any help for that in C++?
unsigned int sleep(unsigned int time_in_seconds);
work on linux and probably on windows. Somebody else on this forum, familiar with windows, could confirm or not last part of my statement.
best regards
oracleguy
02-01-2009, 08:59 AM
The sleep method should be available on Windows if you include the windows.h header file.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.