Calculates average time
Improved the way of showing the results