emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* logging the timings of task A + task B both at once?
@ 2016-04-06  8:39 Sharon Kimble
  2016-04-06  8:54 ` Nicolas Goaziou
  0 siblings, 1 reply; 3+ messages in thread
From: Sharon Kimble @ 2016-04-06  8:39 UTC (permalink / raw)
  To: org-mode-email

[-- Attachment #1: Type: text/plain, Size: 618 bytes --]

Being that we can have multiple cursors, is it possible to have 2
separate, distinct, tasks being clocked both at the same time?

I've googled but didn't come up with anything, but trying it I find that
'Task B' when it starts timing it auto-logs-out of 'Task A'. But I'm now
in the situation where I have to write down the times of 'Task A' to
fudge the timings in the logbook of 'Task A' when 'Task B' finishes,
which isn't ideal.

So, can it be done please?

Thanks
Sharon.
-- 
A taste of linux = http://www.sharons.org.uk
TGmeds = http://www.tgmeds.org.uk
Debian 8.4, fluxbox 1.3.7, emacs 25.0.92

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: logging the timings of task A + task B both at once?
  2016-04-06  8:39 logging the timings of task A + task B both at once? Sharon Kimble
@ 2016-04-06  8:54 ` Nicolas Goaziou
  2016-04-24  9:54   ` Christoph LANGE
  0 siblings, 1 reply; 3+ messages in thread
From: Nicolas Goaziou @ 2016-04-06  8:54 UTC (permalink / raw)
  To: Sharon Kimble; +Cc: org-mode-email

Hello,

Sharon Kimble <boudiccas@skimble.plus.com> writes:

> Being that we can have multiple cursors, is it possible to have 2
> separate, distinct, tasks being clocked both at the same time?


[...]

> So, can it be done please?

There can only be one active clock at any given time. Although
I understand the need for some special features, I don't think it is
worth re-implementing "org-clock.el" to allow multiple ones.

You may probably redefine "Task A" and "Task B" so they do not overlap
and require being clocked at the same time.

Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: logging the timings of task A + task B both at once?
  2016-04-06  8:54 ` Nicolas Goaziou
@ 2016-04-24  9:54   ` Christoph LANGE
  0 siblings, 0 replies; 3+ messages in thread
From: Christoph LANGE @ 2016-04-24  9:54 UTC (permalink / raw)
  To: Sharon Kimble, org-mode-email

Nicolas Goaziou on 2016-04-06 10:54:
> Sharon Kimble <boudiccas@skimble.plus.com> writes:
>> Being that we can have multiple cursors, is it possible to have 2
>> separate, distinct, tasks being clocked both at the same time?
> [...]
>
> There can only be one active clock at any given time. Although
> I understand the need for some special features, I don't think it is
> worth re-implementing "org-clock.el" to allow multiple ones.
>
> You may probably redefine "Task A" and "Task B" so they do not overlap
> and require being clocked at the same time.

I have a similar use case, which is related to booking working hours on
multiple projects and/or multiple employers.  I have many tasks which
cannot clearly be associated to a single project or employer, such as
"installing security updates on my computer".  Here, it would be
convenient to be able to define, by a special property, that, say, .7 of
the time logged on one task should be attributed to one
project/employer, and .3 to the other one.

Such that a query for

#+BEGIN: clocktable :tags "EmployerA"

over

* Security updates :EmployerA:EmployerB:
  :PROPERTIES:
  :LOGFACTOR-EmployerA: .7
  :LOGFACTOR-EmployerB: .3
  :END:
  :LOGBOOK:
  CLOCK: [2016-04-24 Sun 11:09]--[2016-04-24 Sun 12:09] =>  1:00
  :END:

would result in a value of "0:42".

I am currently using two workarounds for this:

1. Explicitly defining two separate tasks.  Having logged some time on
one of the tasks, I manually split the CLOCK: intervals and move the
"other" part of the split to the other task.  Thanks to my function
org-clock-split-current-interval
(https://github.com/clange/emacs/blob/master/.emacs.d/init/org.el#L68)
the latter is not as painful as one might think.

2. Not tagging tasks with :EmployerA: or :EmployerB: but with a common
super-tag, e.g. :Work:.  Then, in the spreadsheets I'm generating from
my clock tables (see
https://github.com/clange/org-mode/blob/master/clocktable-spreadsheet/working-hours.org
for the general approach; those spreadsheets that generate
project-/employer-specific timesheets I have not yet made public), I do
something like "determine all time logged on :Work: but neither on
:EmployerA: nor on :EmployerB:.  Add .7 of that time to the time that's
explicitly logged on :EmployerA:, and .3 of that time to the time that's
explicitly logged on :EmployerB:."

Cheers,

Christoph

-- 
Dr. Christoph Lange, Enterprise Information Systems Department
Applied Computer Science @ University of Bonn; Fraunhofer IAIS
http://langec.wordpress.com/about, Skype duke4701

→ CSCUBS Computer Science Conference for University of Bonn Students
  25 May 2016; submission deadline 28 April – http://cscubs.cs.uni-bonn.de

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-04-24  9:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-06  8:39 logging the timings of task A + task B both at once? Sharon Kimble
2016-04-06  8:54 ` Nicolas Goaziou
2016-04-24  9:54   ` Christoph LANGE

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).