usleep moved to std impl.

This commit is contained in:
Gav Wood 2014-02-09 11:37:13 +00:00
parent 3db0807674
commit d8c693a338

View File

@ -20,6 +20,8 @@
* Peer Network test functions. * Peer Network test functions.
*/ */
#include <chrono>
#include <thread>
#include <BlockChain.h> #include <BlockChain.h>
#include <PeerNetwork.h> #include <PeerNetwork.h>
using namespace std; using namespace std;
@ -53,7 +55,7 @@ int peerTest(int argc, char** argv)
for (int i = 0; ; ++i) for (int i = 0; ; ++i)
{ {
usleep(100000); this_thread::sleep_for(chrono::milliseconds(100000));
pn.process(ch); pn.process(ch);
if (!(i % 10)) if (!(i % 10))
pn.pingAll(); pn.pingAll();