aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--peer.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/peer.cpp b/peer.cpp
index 5a440a88..ab7ea9df 100644
--- a/peer.cpp
+++ b/peer.cpp
@@ -20,6 +20,8 @@
* Peer Network test functions.
*/
+#include <chrono>
+#include <thread>
#include <BlockChain.h>
#include <PeerNetwork.h>
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();