Boost logo

Boost Users :

From: Victor Whiskey Yankee (victor.whiskey.yankee_at_[hidden])
Date: 2008-05-19 11:55:04


Kevin Heifner wrote:
Victor Whiskey Yankee wrote:
  
I'm using boost 1.35.

Would someone please give example of best way to sleep for a specified 
duration of milliseconds or nanoseconds?
    

boost::this_thread::sleep(boost::posix_time::milliseconds(10));
  
Great.Thank you!

Now, how can I sleep if I am not inside a boost::thread? When I try that, I get this compile error:

    error: 'boost::this_thread' has not been declared



Thanks again,
Victor

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net