Calculation of elapsed time in each module.