Stampy watches all of the files in your project directory and records the current timestamp whenever they change.  Then you can ask Stampy how long it took you to write that feature, or how long you've spent, in total, working on your project.