idiom

In the nick of time.

Theme: time Keyword: time

means

At the last possible moment before it is too late.

Example

The mechanic arrived in the nick of time.