From d8c693a338594ae83f94e81e95d499340c36775b Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Sun, 9 Feb 2014 11:37:13 +0000 Subject: [PATCH] usleep moved to std impl. --- peer.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/peer.cpp b/peer.cpp index 5a440a88f..ab7ea9dfd 100644 --- a/peer.cpp +++ b/peer.cpp @@ -20,6 +20,8 @@ * Peer Network test functions. */ +#include +#include #include #include using namespace std; @@ -53,7 +55,7 @@ int peerTest(int argc, char** argv) for (int i = 0; ; ++i) { - usleep(100000); + this_thread::sleep_for(chrono::milliseconds(100000)); pn.process(ch); if (!(i % 10)) pn.pingAll();