The best strategy to sleep to get a provided duration employing Boost should be to initial produce a time duration object, after which you can move this to the snooze approach to the Particular boost::this_thread https://ragingbookmarks.com/story18024629/the-smart-trick-of-boost-threads-profile-that-no-one-is-discussing