aboutsummaryrefslogtreecommitdiffstats
path: root/peer.cpp
diff options
context:
space:
mode:
authorGav Wood <i@gavwood.com>2014-02-09 19:37:13 +0800
committerGav Wood <i@gavwood.com>2014-02-09 19:37:13 +0800
commitd8c693a338594ae83f94e81e95d499340c36775b (patch)
treefb3883962b10ba0d787e38bd499149f8718a7710 /peer.cpp
parent3db0807674e11d0d0a685fc169f70de464159f11 (diff)
downloaddexon-solidity-d8c693a338594ae83f94e81e95d499340c36775b.tar.gz
dexon-solidity-d8c693a338594ae83f94e81e95d499340c36775b.tar.zst
dexon-solidity-d8c693a338594ae83f94e81e95d499340c36775b.zip
usleep moved to std impl.
Diffstat (limited to 'peer.cpp')
-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();