not a minute too soon vs under the wire

not a minute too soon

adv
  • after an undesirable delay; undesirably late 

  • at the last possible moment; just in time 

under the wire

prep
  • At the last minute; before the deadline; barely on time; nearly late. 

  • Across the finish line. 

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