Sleep for the given number of ms