When I was contracting, I used FreshBooks to manage billable hours.
Now, I judge it by items checked off my todo list. Sometimes I use the Pomodoro technique, which is an excellent tool for keeping focus. When using the Pomodoro technique, I tally the number of pomodoros for each task, allowing me to get a good sense of my productivity with the added benefit of helping me understand how long each task took.