The only approach to rest for the supplied length utilizing Boost should be to initially make a time duration item, after which pass this to the snooze method of the special boost::this_thread class.
A boost::thread https://bookmarkbells.com/story18206418/considerations-to-know-about-get-threads-followers