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));
}