I fixed the bug at 11pm.

I only know that because I checked the git log the next morning. The commit that made everything pass was at 23:04.

I kept debugging until 2am anyway.

So what was I doing for those three hours?

Honestly... mostly rerunning the same tests.