diff options
-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(); |