In The Nick Of Time
WordNet
adverb
(1) At the last possible moment
"She was saved in the nick of time"
WiktionaryText
Adverb
- At the last possible moment; at the last minute.
- He finished writing his paper and slid it under the door just in the nick of time.