sleep(int) for c++

G

Gary Wessle

Hi
is there a some equivalent method in boost or others which suits c++,
instead of using system ( "sleep 5s" ) to send the system to sleep for
5 seconds.

thanks
 
K

Kevin Handy

Gary said:
Hi
is there a some equivalent method in boost or others which suits c++,
instead of using system ( "sleep 5s" ) to send the system to sleep for
5 seconds.

Why do you want to put the entire system to sleep?
Do you want to allow background/other tasks to run
in the meantime?

Maybe try the posix 'sleep' or 'usleep' calls.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,141
Messages
2,570,817
Members
47,362
Latest member
ChandaWagn

Latest Threads

Top