|
From: Chris B. <ch...@cb...> - 2000-11-29 18:44:07
|
Ian,
Hi. I dont think dev-c++ has a delay command so I wrote my own, here is the
code:
#include <ctime>
void delay(int seconds)
{
clock_t current, end;
current = clock();
end = current + CLOCKS_PER_SEC * seconds;
while(current < end)
current = clock(); // loop while current not equal end
}
Hope this helps! :)
Chris.
----- Original Message -----
From: "Ian Weston" <lak...@ho...>
To: <Dev...@li...>
Sent: 28 November 2000 08:49
Subject: [Dev-C++] Delay
> hi everyone.
> does anyone know how to use delay. if so please could you send me
the
> c++ source code for it. i would be very greatful.
>
> thanks alot
> laker
>
____________________________________________________________________________
_________
> Get more from the Web. FREE MSN Explorer download :
http://explorer.msn.com
>
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users
>
|