0

hi all

i am using VC++ editor. Can anyone tell me how to insert sleep in my program? i have tried sleep(). but it is giving an warning

'sleep' undefined; assuming extern returning int.
Thanks in advance

5
Contributors
9
Replies
10
Views
9 Years
Discussion Span
Last Post by Colin Mac
0

Thanks Salem
how to increase it to seconds from milliseconds?

0

How about Sleep(1000); since 1000 ms=1 sec

i have tried with that but its is hardly giving me the desired effect

0

And what is "the desired" effect?

apparently he desires a function to convert seconds to milliseconds

now where is that function?

i know i left it around here somewhere....

0

apparently he desires a function to convert seconds to milliseconds

now where is that function?

i know i left it around here somewhere....

i want to give the sleep in seconds..

0

i want to give the sleep in seconds..

It doesn't matter. There's 1000 milliseconds in a second. If you want 5 seconds then you'd pass 5000 for example.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.