in the nick of time vs timely

in the nick of time

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

timely

adv
  • In compliance with applicable time limits. 

adj
  • Done at the proper time or within the proper time limits; prompt. 

  • Happening or appearing at the proper time. 

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