summaryrefslogtreecommitdiffstats
blob: 7161217c797513d2167fc1d91b7a3f8bd64b4b53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*
 * Copyright (c) 2010 Remko Tronçon
 * Licensed under the GNU General Public License v3.
 * See Documentation/Licenses/GPLv3.txt for more information.
 */

#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);
}

}