text: public virtual void Add(TaskStats stat2){numRuns += stat2.NumRuns;elapsed += stat2.Elapsed;maxTotMem += stat2.MaxTotMem;maxUsedMem += stat2.MaxUsedMem;count += stat2.Count;if (round != stat2.round){round = -1; }if (countsByTime != null && stat2.countsByTime != null){if (countsByTimeStepMSec != stat2.countsByTimeStepMSec){throw new InvalidOperationException("different by-time msec step");}if (countsByTime.Length != stat2.countsByTime.Length){throw new InvalidOperationException("different by-time msec count");}for (int i = 0; i < stat2.countsByTime.Length; i++){countsByTime[i] += stat2.countsByTime[i];}}}