in the nick of time
Upper Intermediate (B2)informal
Just before it was too late.
"The firefighters arrived in the nick of time to save the building."
Hear it in context

How to Convey a Mood in Music | Can Music Really Affect Your Emotions?
Rick Steves' Europe · 3:25
Just in the nick of time.

Finale - We Played Hide And Seek Across The U.K.
Jet Lag: The Game · 45:09
(wheezes) Just in the nick of time.

HAYDEN PANETTIERE Tells Her Truth For The First Time Ever (Custody, Addiction, Fame, Hollywood)
Jay Shetty Podcast · 43:17
in time in the nick of time like

Saving Baby Chimps (Full Episode) | DOCUMENTARY SPECIAL | Nat Geo Animals
Nat Geo Animals · 19:10
(music) IZZY: Just in the nick of time.

We Cast MrBeast in a Movie
Sticks · 8:52
up the conveyor belt in the nick of time.