diff options
author | Gav Wood <i@gavwood.com> | 2014-02-09 19:37:13 +0800 |
---|---|---|
committer | Gav Wood <i@gavwood.com> | 2014-02-09 19:37:13 +0800 |
commit | d8c693a338594ae83f94e81e95d499340c36775b (patch) | |
tree | fb3883962b10ba0d787e38bd499149f8718a7710 | |
parent | 3db0807674e11d0d0a685fc169f70de464159f11 (diff) | |
download | dexon-solidity-d8c693a338594ae83f94e81e95d499340c36775b.tar.gz dexon-solidity-d8c693a338594ae83f94e81e95d499340c36775b.tar.zst dexon-solidity-d8c693a338594ae83f94e81e95d499340c36775b.zip |
usleep moved to std impl.
-rw-r--r-- | peer.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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(); |