Added both total and average time to timeit.