* org-clock-rounding-minutes -- non-zero value can cause double clocking
[not found] <mailman.88.1552064418.32460.emacs-orgmode@gnu.org>
@ 2019-03-08 18:33 ` Raymond Zeitler
2019-03-14 17:21 ` Nicolas Goaziou
0 siblings, 1 reply; 3+ messages in thread
From: Raymond Zeitler @ 2019-03-08 18:33 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 1400 bytes --]
There is a problem when org-clock-rounding-minutes is non-zero, say N. The problem is that the clockin-time of a task can be N less than the clockout-time of the previous task at certain times. Thus, clock reports can show an extra N minutes total time for each occurrence of this effect.
Consider this.
Set org-clock-rounding-minutes to 6. (This allows for tracking time in 0.1 hour increments.)
Create an org file with two tasks:
* Tasks** TODO Foo** TODO Bar
Clock into Task Foo at, say, 12:54 plus or minus 2 minutes. Its LOGBOOK will show the expected 12:54 timestamp.
Clock into Bar at 12:57, which is halfway between 0.90th hour and 1.00th hour.
Result, the clockout time for Foo is rounded up. But the clockin time for Bar is rounded *down*. Thus, two tasks have started at the same time.
* Tasks** TODO Foo :LOGBOOK: CLOCK: [2019-03-08 Fri 12:54]--[2019-03-08 Fri 13:00] => 0:06 :END:** TODO Bar :LOGBOOK: CLOCK: [2019-03-08 Fri 12:54] :END:
So when I use org-mode to track time for my weekly timesheet, it will report that my total clocked time for any given day is several minutes more than the time I've been at work!
I expect that the clockin time of Bar will be the same as the clockout time of Foo.
Is there another variable I need to set in order to enforce clockin-time=clockout-time?
org-version returns 9.1.2-37
- Ray
[-- Attachment #2: Type: text/html, Size: 3562 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: org-clock-rounding-minutes -- non-zero value can cause double clocking
2019-03-08 18:33 ` org-clock-rounding-minutes -- non-zero value can cause double clocking Raymond Zeitler
@ 2019-03-14 17:21 ` Nicolas Goaziou
2019-03-15 16:32 ` Raymond Zeitler
0 siblings, 1 reply; 3+ messages in thread
From: Nicolas Goaziou @ 2019-03-14 17:21 UTC (permalink / raw)
To: Raymond Zeitler; +Cc: emacs-orgmode
Hello,
Raymond Zeitler <zeitra@yahoo.com> writes:
> There is a problem when org-clock-rounding-minutes is non-zero, say
> N. The problem is that the clockin-time of a task can be N less than
> the clockout-time of the previous task at certain times. Thus, clock
> reports can show an extra N minutes total time for each occurrence of
> this effect.
> Consider this.
> Set org-clock-rounding-minutes to 6. (This allows for tracking time in 0.1 hour increments.)
> Create an org file with two tasks:
> * Tasks** TODO Foo** TODO Bar
>
> Clock into Task Foo at, say, 12:54 plus or minus 2 minutes. Its LOGBOOK will show the expected 12:54 timestamp.
> Clock into Bar at 12:57, which is halfway between 0.90th hour and 1.00th hour.
> Result, the clockout time for Foo is rounded up. But the clockin time for Bar is rounded *down*. Thus, two tasks have started at the same time.
> * Tasks** TODO Foo :LOGBOOK: CLOCK: [2019-03-08 Fri 12:54]--[2019-03-08 Fri 13:00] => 0:06 :END:** TODO Bar :LOGBOOK: CLOCK: [2019-03-08 Fri 12:54] :END:
> So when I use org-mode to track time for my weekly timesheet, it will report that my total clocked time for any given day is several minutes more than the time I've been at work!
> I expect that the clockin time of Bar will be the same as the clockout time of Foo.
> Is there another variable I need to set in order to enforce
> clockin-time=clockout-time?
What about `org-clock-continuously'?
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: org-clock-rounding-minutes -- non-zero value can cause double clocking
2019-03-14 17:21 ` Nicolas Goaziou
@ 2019-03-15 16:32 ` Raymond Zeitler
0 siblings, 0 replies; 3+ messages in thread
From: Raymond Zeitler @ 2019-03-15 16:32 UTC (permalink / raw)
To: Nicolas Goaziou; +Cc: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 688 bytes --]
Nicolas Goaziou <mail@nicolasgoaziou.fr> wrote:
>Raymond Zeitler <zeitra@yahoo.com> writes:
>> There is a problem when org-clock-rounding-minutes is non-zero, say
>> N. The problem is that the clockin-time of a task can be N less than
>> the clockout-time of the previous task at certain times.-snip-
>> I expect that the clockin time of Bar will be the same as the clockout time of Foo.
>> Is there another variable I need to set in order to enforce
>> clockin-time=clockout-time?
> What about `org-clock-continuously'?
It was set to nil. I toggled it to non-nil, and the clock behavior is as desired.
Thank you for pointing me in the right direction!
- Ray
[-- Attachment #2: Type: text/html, Size: 2439 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-03-15 16:32 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <mailman.88.1552064418.32460.emacs-orgmode@gnu.org>
2019-03-08 18:33 ` org-clock-rounding-minutes -- non-zero value can cause double clocking Raymond Zeitler
2019-03-14 17:21 ` Nicolas Goaziou
2019-03-15 16:32 ` Raymond Zeitler
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.