Search:
Forum
General C++ Programming
wait for 5 mili second
wait for 5 mili second
Feb 8, 2010 at 12:53pm UTC
ali zi zeperto
(2)
hi
i`m searching for a way to wait 5 mili or similar values like that in my program.
sleep()doesn`t works with flaot numbers.can somebody help me?
Feb 8, 2010 at 1:19pm UTC
hamsterman
(4538)
Why would you want sleep() to work with floats?
Do you wish to sleep for 0.5 millisecond?
Well, you could try
http://www.cplusplus.com/reference/clibrary/ctime/
Feb 8, 2010 at 1:40pm UTC
jsmith
(5804)
If on unix, try usleep().
Feb 8, 2010 at 2:32pm UTC
Duthomhas
(13282)
And on Windows,
Sleep
().
Feb 8, 2010 at 4:14pm UTC
ali zi zeperto
(2)
thank you everybody.
If on unix, try usleep().
it`s exactly the thing that i wanted.i`m using Debian linux.thank you.
Topic archived. No new replies allowed.
C++
Information
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs