Re: [Dev-C++] Program wait from 25 to 40 min. How to ?
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Abhijit S. <mu...@gm...> - 2002-10-25 12:12:19
|
Greets, Wendel.
> Hi,
>
> I'm trying do my program sleep from 25 to 40 min. I tryed use the funcion
> sleep() but i can't do it. :/
>
> Someone know how to do it ?? Can gave-me a example ??
use Sleep(), declared in <windows.h>
void Sleep(DWORD milli_seconds);
milli_seconds can be INFINITE, or zero, which is used when multi-threading.
So for 25 minutes, it would be 25*60*100 (100 ms is one second, right?).
Sleep(150000);
___________________________________________________________
Abhijit Shylanath
E-mail: mu...@gm... || ibr...@bi...
Web-site: http://mudeth.tripod.com/
|