Wiktionary
not a minute too soon
adv. (context idiomatic English) at the last possible moment; just in time