Water breaks

How soon after water breaks do you need to get to the hospital?

Let’s say it breaks in middle of night - do you have time to take a quick shower and then go?