気がつくと
Meanings
1
before I knew it; next thing you know; when I came to; all of a sudden
Fixed expression used to describe a sudden realization or an event that happened without the speaker noticing. Often used at the beginning of a sentence to set up a surprising or unexpected situation.
Before I knew it, it had become pitch dark outside.
When he came to, he was standing alone in the room.