I was taking a walk to kill the time, and before I knew it, I was here.
Я прогуливался, чтобы убить время, и сам не заметил, как оказался здесь.