Calculates the average time from an bash's time command