committing changes to generalize the average time calculation methods
for process and tasks in the ActivitiUtils.java file.