HPCC-12391 Refactor activity timers to track start/end time too

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
(The advantage being that hthor/thor could then call the same function)