3 #include "boost/version.hpp"
5 #if BOOST_VERSION < 105000
6 #include "boost/thread/xtime.hpp"
8 #include "boost/thread/thread.hpp"
15 #if BOOST_VERSION >= 105000
16 boost::this_thread::sleep_for(boost::chrono::seconds(sec));
18 using namespace boost;
20 if ( xtime_get(&t,TIME_UTC) == TIME_UTC ) {
31 #if BOOST_VERSION >= 105000
32 boost::this_thread::sleep_for(boost::chrono::nanoseconds(nsec));
34 using namespace boost;
36 if ( xtime_get(&t,TIME_UTC) == TIME_UTC ) {
37 t.sec += nsec / 1000000000;
38 t.nsec += nsec % 1000000000;
GAUDI_API void NanoSleep(long long nsec)
Small variation on the sleep function for nanoseconds sleep.
GAUDI_API void Sleep(int sec)
Simple sleep function.
This is a number of static methods for bootstrapping the Gaudi framework.