Bari.Core.Build.Statistics.BuilderStats.Add C# (CSharp) Method

Add() public method

public Add ( string description, System.TimeSpan elapsed ) : void
description string
elapsed System.TimeSpan
return void
        public void Add(string description, TimeSpan elapsed)
        {
            if (maxIndex == -1 || records[maxIndex].Length < elapsed)
                maxIndex = records.Count;
            if (minIndex == -1 || records[minIndex].Length > elapsed)
                minIndex = records.Count;

            sum += elapsed;

            records.Add(new Record(description, elapsed));
        }