This is one of the techniques that I try to use when I find myself easily getting distracted. The Pomodoro Technique is a way to stay focused by alternating set periods of work and breaks (each period is a "pomodoro"). Once the basic habits are set, one can start planning out how many pomodoros an activity will take and establish a set plan for the day.