zài​qiān​jūn​yī​fà​zhī​jì

in the nick of time

  1. zài preposition
    [location/time]
    Used as a linker to introduce the time, place, or situation of an action, meaning "at", "in", or "on".
  2. to hang by a thread
    a thousand pounds hanging by a single hair; used to describe a situation that is extremely critical or perilous
  3. at the time of
    (bound form) at the moment when; during the time of