Except:
Maybe you should spend that time trying to fix your long compile/recompile times. Odds are you're re-compiling too much, or your binary is quite monolithic and includes items that could be put into separate DLLs/shared objects.
Nowadays, I will usually work on a feature in isolation in a new project so I get a nice focused feedback loop. It doesn't stop the procrastination when I have longer compiles, but it reduces the frequency at least.
I used to continue editing code, but this is a bad idea, since I've got the "save" reflex activating every 10 second, so the compiler breaks on incomplete newly saved code.
usually stretch and enjoy the view from my window.
Go stand up and walk around. Stretch. It's good for you.