/* * Copyright (c) 2010 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #include #include #include namespace Swift { void sleep(unsigned int msecs) { boost::xtime xt; #if BOOST_VERSION >= 105000 boost::xtime_get(&xt, boost::TIME_UTC_); #else boost::xtime_get(&xt, boost::TIME_UTC); #endif xt.nsec += msecs*1000000; boost::thread::sleep(xt); } }