Boost logo

Boost Users :

From: Anthony Williams (anthony_w.geo_at_[hidden])
Date: 2008-05-19 11:40:27


Victor Whiskey Yankee <victor.whiskey.yankee_at_[hidden]> writes:

> 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(3));

Anthony

-- 
Anthony Williams            | Just Software Solutions Ltd
Custom Software Development | http://www.justsoftwaresolutions.co.uk
Registered in England, Company Number 5478976.
Registered Office: 15 Carrallack Mews, St Just, Cornwall, TR19 7UL

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