I currently log the total number of hours I work each day in an OpenOffice Spreadsheet. I input the start time, lunch/break time, and end time, and it calculates the total hours worked. I'm not savvy enough to create this type of spreadsheet myself, so I looked through a large number of templates online before finding one that works as I've described above. I'm still not crazy about the way that this spreadsheet is laid out.
If you can link to a spreadsheet available for download similar to the one described above, please do so in the comments.
If you use time-logging for various distinct projects throughout the day, please describe this process and link to the software you use (if possible).
More of a meta-discussion: how time-logging this enhanced your performance or time management?, for what types of projects/activities is it best to time-log?, general comments about the idea
I have basically this problem (I'm fairly sure it's tied into my ADHD). As noted below, RescueTime is an excellent solution: it'll keep track of different tabs in the same program separately, do it automatically, and do it down to the second - so you get a very accurate result at the end. I've found some very valuable results from this - for starters, that I work only about 50% of my "work hours" even on a good day, and that I spend much more time on random surfing than I thought I did.
As a baseline, I need a program that will give me more information than simply being slightly more aware of my actions does. I want something that will give me surprising information I wouldn't have noticed otherwise. This is necessarily non-trivial, especially given my knack for metacognition.