Original Post
I'm writing some code using boost::thread, and one thing I want is to make a thread sleep - for instance in a thread which runs a loop. boost::thread::sleep() looks good but apparently only has resolution of one second. I don't need nanosecond resolution, but a few milliseconds would be nice. So using standard C/C++ libraries, and boost, what is the simplest way to make a thread sleep? I am finding the boost documentation really unhelpful in layout as well as content so if you are able to provide code it would save me a bunch of time! Thanks.