Module delay
Internal function to implement a variable busy-wait loop.
delay for N miliseconds
delay for N seconds
delay for N microseconds