Fetching details from the dictionary...

before one knows; before one becomes aware of; unnoticed; unawares
何時の間にか眠ってしまった。
Before I knew it, I fell asleep.
何時の間にか春になっていたね。
Before we knew it, spring had come.
何時の間にか彼女は帰っていた。
Before I knew it, she had gone home.