In The Nick Of Time Meaning

The phrase in the nick of time means at the last possible moment, just before it's too late.

The word nick refers to a notch, cut, or indentation on an edge or a surface.

Example: I arrived at the train station in the nick of time and took the last train to the capital city.