before one knows it; unnoticed; unawares
Describes something happening gradually or without the speaker realizing it, often with a sense of time passing.
Before they knew it, the two of them had become close friends.
Before I knew it, the sun had set.
いつしか彼女のことが好きになっていた。
I had fallen in love with her without realizing it.
いつしか十年が過ぎていた。
Ten years had passed before I knew it.