Repair Delay Bug

Miscellaneous Forums/Linux Discussion/Repair Delay Bug

The thing about usleep is that it's not a reliable way of sleeping for a specific amount of time. Often it can actually take longer than you specified for the sleep to end.

It may not be a big deal for you if you don't need a very accurate delay, but it means that delay becomes somewhat useless for some tasks.

Probably nanosleep is better for these tasks because it has within 10ms accuracy.