3 ms·
Of course, you could also randomly generate a time, then sleep for that long. This gives you significantly more control (you can easily specify "wait at least a
by JoachimSchipper 17y ago
Of course, you could also randomly generate a time, then sleep for that long. This gives you significantly more control (you can easily specify "wait at least an hour" or "wait at most 48 hours") and is less resource-intensive. (Of course, "wait at least an hour" is not a good idea if your program crashes all the time.)
Still, nice.