MCPcopy Create free account
hub / github.com/cameron314/readerwriterqueue / unpredictableDelay

Function unpredictableDelay

tests/stabtest/stabtest.cpp:12–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10//#include <unistd.h> // usleep()
11
12void unpredictableDelay(int extra = 0)
13{
14/* if ((rand() & 4095) == 0) {
15 usleep(2000 + extra); // in microseconds
16 }*/
17}
18
19int main(int argc, char** argv)
20{

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected