in the nick of time vs not a minute too soon

in the nick of time

prep
  • At the last possible moment; at the last minute. 

not a minute too soon

adv
  • after an undesirable delay; undesirably late 

  • at the last possible moment; just in time 

How often have the words in the nick of time and not a minute too soon occurred in a corpus of books? (source: Google Ngram Viewer )