2 ms·
Excellent advice. Good for programming in general when it comes to sleeps or waits and such. If you have multiples of 10s everywhere when an error happens every
by rdtsc 6y ago
Excellent advice. Good for programming in general when it comes to sleeps or waits and such. If you have multiples of 10s everywhere when an error happens every, say, 10 or 20 seconds, it might be hard to tell where it's coming from. But if you make them relatively prime to each other, you can can easily tell: "Oh it happens every 37 seconds? I know exactly what that is!"