That's the problem. Going on and on and on. Usually when it comes to any complex task, going on and on and on is a BAD thing. Forcing yourself to take breaks at a set interval makes you realize and optimize what it is you have actually been spending time on. And assess the next direction to take.
Working without taking breaks is like jamming down the accelerator without steering! You need to do both if you hope to do anything more complex than travelling in a straight line.
"Willpower" is a bit fuzzy and may not be a limited resource, but attentional capacity and working memory most certainly are.