in_the_nick_of_time
1. [ adverb ] at the last possible moment
Synonyms: just_in_time
Examples:

"she was saved in the nick of time"