TimeDelay()
This function waits for a specified period of time before returning to the the caller.