idiom
in the nick of time
在最后可能的时刻;就在为时已晚之前
Meaning
at the last possible moment; just before it’s too late
Example
He arrived **in the nick of time** to catch the train.
他**在时间的关头**赶上了火车。