20

In an attempt to figure out how I've been spending my time, I've started logging my time spent on different tasks with org-clock-in and org-clock-out.

I often find myself editing clock entries by hand, for instance, when I realize that I should have clocked in 20 minutes ago. So is there a way to see a) which clocks are currently running (or haven't been terminated properly because I forgot to clock out before exiting Emacs), and b) a list of clock entries?

I can get a table that shows the total amount of time I've spent on each task, but I can't get a list that says,

9:00--9:30   Project A
9:18--10:00  Project B
10:00--11:00 Meeting
11:45--13:00 Lunch

which would let me see overlapping times (like Projects A and B, above) and gaps (like the one between Meeting and Lunch). Is there such a thing?

1 Answer 1

23

org-agenda-log-mode or C-u C-u l in your Agenda will give you exactly this table. Depending on the org-agenda-log-mode-items variable it will restrict the agenda to entries that have been clocked or closed today (that's the default setting). To add visual emphasis to gaps and overlaps of your clocking chunks look into the org-agenda-clock-consistency-checks variable.

6
  • 7
    Small additional info: While in the agenda view, you can actually directly invoke the clockcheck by using v and then selecting c from the menu. I am currently developing an extension which allows you to modify the recorded clock ranges directly from the agenda's log lines: github.com/dfeich/org-clock-convenience
    – dfeich
    Jan 23, 2016 at 17:04
  • 1
    Thanks! I think I missed org-agenda-log-mode earlier because I was looking in the clocktable part of the documentation, and this is only mentioned in the Agenda commands.
    – arensb
    Jan 24, 2016 at 15:38
  • For me org-agenda-log-mode only shows the length but not the start and end time. And the command v(aka org-agenda-check-type) is not available: Not allowed in timeline-type agenda buffers. Am I missing some configuration or has current org mode 8.3.5-1-g589e96-elpaplus changed? Aug 26, 2016 at 15:39
  • 1
    Look into org-agenda-prefix-format to show start and end time.
    – mutbuerger
    Aug 27, 2016 at 15:25
  • 3
    Is it also possible to show the TOTAL time clocked today in this clockcheck view?
    – AstroFloyd
    May 9, 2019 at 15:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.