Initiaize average_time.