public void add(TaskStats stat2) {numRuns += stat2.getNumRuns();elapsed += stat2.getElapsed();maxTotMem += stat2.getMaxTotMem();maxUsedMem += stat2.getMaxUsedMem();count += stat2.getCount();if (round != stat2.round) {round = -1; }if (countsByTime != null && stat2.countsByTime != null) {if (countsByTimeStepMSec != stat2.countsByTimeStepMSec) {throw new IllegalStateException("different by-time msec step");}if (countsByTime.length != stat2.countsByTime.length) {throw new IllegalStateException("different by-time msec count");}for(int i=0;i<stat2.countsByTime.length;i++) {countsByTime[i] += stat2.countsByTime[i];}}}

public void add ( TaskStats stat2 ) { numRuns += stat2 . getNumRuns ( ) ; elapsed += stat2 . getElapsed ( ) ; maxTotMem += stat2 . getMaxTotMem ( ) ; maxUsedMem += stat2 . getMaxUsedMem ( ) ; count += stat2 . getCount ( ) ; if ( round != stat2 . round ) { round = - 1 ; } if ( countsByTime != null && stat2 . countsByTime != null ) { if ( countsByTimeStepMSec != stat2 . countsByTimeStepMSec ) { throw new IllegalStateException ( "different by-time msec step" ) ; } if ( countsByTime . length != stat2 . countsByTime . length ) { throw new IllegalStateException ( "different by-time msec count" ) ; } for ( int i = 0 ; i < stat2 . countsByTime . length ; i ++ ) { countsByTime [ i ] += stat2 . countsByTime [ i ] ; } } }
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];}}}
