Make mental notes and focus on what you need to work on, not how long you need to work on. We tend to fix 2 hours of time on a task which we can probably finish in 1 hour, but because we gave ourselves 2 hours we tend to stretch our work for that set time limit. Create a different desktop and browser for work to avoid distractions. Limit notifications.