diff options
author | Eric Lombrozo <elombrozo@gmail.com> | 2014-02-09 08:18:24 +0800 |
---|---|---|
committer | Eric Lombrozo <elombrozo@gmail.com> | 2014-02-09 08:18:24 +0800 |
commit | bbfc43593796cf0b73239c01b3b445cb7fe8d7c0 (patch) | |
tree | 93e99e0eed7e578957e9d9f1bbc3a15d7dbae0a7 | |
parent | 3db0807674e11d0d0a685fc169f70de464159f11 (diff) | |
download | dexon-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.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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(); |