Generalised some methods for recording an average over a number of runs of an action, and tracking an average over multiple runs of a test.