Timewarrior is a command line time tracking application, which allows you to record time spent on activities.