summaryrefslogtreecommitdiffstats
blob: 48eae51264a296f0bf0494831244fb82d8e5aa4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/*
 * Copyright (c) 2010-2016 Isode Limited.
 * All rights reserved.
 * See the COPYING file for more information.
 */

#include <Swiften/Base/sleep.h>

#include <chrono>
#include <thread>

namespace Swift {

void sleep(unsigned int msecs) {
    std::this_thread::sleep_for(std::chrono::milliseconds(msecs));
}

}