Monday, May 10, 2010

Sleep the current thread using boost

The following code would sleep the current thread for 200 milliseconds
boost::this_thread::sleep(boost::posix_time::milliseconds(200));

No comments: