in reply to problem with delay(my little code)
Someone has just asked a very similar question: Sleep Not Sleeping when using without "\n".