aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Lombrozo <elombrozo@gmail.com>2014-02-09 08:18:24 +0800
committerEric Lombrozo <elombrozo@gmail.com>2014-02-09 08:18:24 +0800
commitbbfc43593796cf0b73239c01b3b445cb7fe8d7c0 (patch)
tree93e99e0eed7e578957e9d9f1bbc3a15d7dbae0a7
parent3db0807674e11d0d0a685fc169f70de464159f11 (diff)
downloaddexon-solidity-bbfc43593796cf0b73239c01b3b445cb7fe8d7c0.tar
dexon-solidity-bbfc43593796cf0b73239c01b3b445cb7fe8d7c0.tar.gz
dexon-solidity-bbfc43593796cf0b73239c01b3b445cb7fe8d7c0.tar.bz2
dexon-solidity-bbfc43593796cf0b73239c01b3b445cb7fe8d7c0.tar.lz
dexon-solidity-bbfc43593796cf0b73239c01b3b445cb7fe8d7c0.tar.xz
dexon-solidity-bbfc43593796cf0b73239c01b3b445cb7fe8d7c0.tar.zst
dexon-solidity-bbfc43593796cf0b73239c01b3b445cb7fe8d7c0.zip
Replace usleep() and random()
-rw-r--r--peer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/peer.cpp b/peer.cpp
index 5a440a88..6a5fb610 100644
--- a/peer.cpp
+++ b/peer.cpp
@@ -53,7 +53,7 @@ int peerTest(int argc, char** argv)
for (int i = 0; ; ++i)
{
- usleep(100000);
+ std::this_thread::sleep_for(std::chrono::microseconds(100000));
pn.process(ch);
if (!(i % 10))
pn.pingAll();