He got there 'with (only) minutes/seconds to spare'. [=he got there only minutes/seconds before he needed to; he got there just in time]
When they go on vacation, they 'spare no expense'. [=they do not worry about spending too much money; they spend a lot of money]
He said that he would 'spare no expense' [=he would spend as much money as necessary] to make the restaurant successful.
(..) What if before she died she wrote a letter, saying she chose Harvey Dent over you? And what if... to spare you pain... I burnt that letter? How dare you use Rachel... to try to stop me? I am using the truth, Master Wayne. (..)2012 The Dark Knight Rises