public void addSplit ( long timestampInMs , long durationInNs ) { last = durationInNs ; total += durationInNs ; squareTotal += durationInNs * durationInNs ; if ( durationInNs > max ) { max = durationInNs ; } if ( durationInNs < min ) { min = durationInNs ; } counter ++ ; lastTimestamp = timestampInMs ; }
Add stopwatch split information .