3 #if BOOST_VERSION < 15000
4 #include "boost/thread/xtime.hpp"
6 #include "boost/thread/thread.hpp"
13 #if BOOST_VERSION >= 15000
14 boost::this_thread::sleep_for(boost::chrono::seconds(sec));
16 using namespace boost;
18 if ( xtime_get(&t,TIME_UTC) == TIME_UTC ) {
29 #if BOOST_VERSION >= 15000
30 boost::this_thread::sleep_for(boost::chrono::nanoseconds(nsec));
32 using namespace boost;
34 if ( xtime_get(&t,TIME_UTC) == TIME_UTC ) {
35 t.sec += nsec / 1000000000;
36 t.nsec += nsec % 1000000000;