summaryrefslogtreecommitdiffstats
blob: 99d0fe677f813d32e0c1e0cd0753ac457f4a8eae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include "Swiften/Base/sleep.h"

#include <boost/thread.hpp>

namespace Swift {

void sleep(unsigned int msecs) {
	boost::xtime xt;
	boost::xtime_get(&xt, boost::TIME_UTC);
	xt.nsec += msecs*1000000;
	boost::thread::sleep(xt);
}

}