Previous: Tracking TODO state changes, Up: Progress logging
Org-mode allows you to clock the time you spent on specific tasks in a project. When you start working on an item, you can start the clock. When you stop working on that task, or when you mark the task done, the clock is stopped and the corresponding time interval is recorded. It also computes the total time spent on each subtree of a project.
org-log-done for the possibility to
record an additional note together with the clock-out time
stamp1.
org-remove-highlights-with-change) or press C-c C-c.
#+BEGIN: clocktable :maxlevel 2 :emphasize nil
#+END: clocktable
If such a block already exists, its content is replaced by the new table. The `BEGIN' line can specify options:
:maxlevels Maximum level depth to which times are listed in the table. :emphasize Whent, emphasize level one and level two items :block The time block to consider. This block is specified relative to the current time and may be any of these keywords:today,yesterday,thisweek,lastweek,thismonth,lastmonth,thisyear, orlastyear. :tstart A time string specifying when to start considering times :tend A time string specifying when to stop considering times
So to get a clock summary for the current day, you could write
#+BEGIN: clocktable :maxlevel 2 :block today
#+END: clocktable
and to use a specific time range you could write2
#+BEGIN: clocktable :tstart "<2006-08-10 Thu 10:00>"
:tend "<2006-08-10 Thu 12:00>"
#+END: clocktable
The l key may be used in the timeline (see Timeline) and in the agenda (see Weekly/Daily agenda) to show which tasks have been worked on or closed during a day.