Take an average time over 10000 runs