[bug 1050766] Measure and record time it takes tasks to execute.