Pass in time calculation to `collectAverages`.