By the skin of (one's) teeth; used as an adverb
Context #1 Laurie: Hey Alfonso! Wait, why are you all sweaty? Alfonso: I almost missed the bus. Laurie: What? You’re always on time! Alfonso: Normally, but I forgot to change my clocks after the time change and only realized when I looked at my phone,