Replace usleep() and random()

This commit is contained in:
Eric Lombrozo 2014-02-08 16:18:24 -08:00
parent 3db0807674
commit bbfc435937

View File

@ -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();