Life problem: what if it is easy to get distracted after 5 minutes of compilation?

my project is relatively large. It takes 5 minutes to test and compile every time I modify the code. I stare at the screen and get tired, read the mobile phone news and get distracted. I can"t read the technical tutorial for 5 minutes, and I can"t sleep on my stomach for a while. I compile at least 10 times a day, and every time I go to the toilet and draw water is not good.
anyway, no matter what I do, I look back at the code 5 minutes later, and I can forget what I was going to do before compilation. There is a 30% chance that this kind of thing will happen, especially when it is easy to change the content, it is easier to forget, perhaps because you let your guard down. But this affects my work efficiency!
how do you break it? What do you do when compiling? Is the mind wandering too empty?

Dec.20,2021

there is a book called "list Revolution", which probably means that you need a to-do list to improve your productivity. I usually use post-it notes to list what I need to do today, and I usually don't remember what to do. I was interrupted on the way, but when I had a thought about something, I wrote down one or two key words and posted them on the desktop. It was easy to get into the state when I came back later.

Menu