mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
usleep moved to std impl.
This commit is contained in:
parent
3db0807674
commit
d8c693a338
4
peer.cpp
4
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();
|
||||
|
Loading…
Reference in New Issue
Block a user