wait for 5 mili second

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?
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/
If on unix, try usleep().
And on Windows, Sleep().
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.