public ReportItem getReport(Run r) { return (from ReportItem rep in Reports where rep.Name == r.Name select rep).FirstOrDefault(); }
public ReportItem(Run r) { Name = r.Name; totalCalls++; aggregateTime += r.totalMs; lowTime = r.totalMs; highTime = r.totalMs; }
public void UpdateReportItem(Run r) { totalCalls++; aggregateTime += r.totalMs; if (r.totalMs < lowTime) lowTime = r.totalMs; if (r.totalMs > highTime) highTime = r.totalMs; }
public ReportItem getReport(Run r) { return((from ReportItem rep in Reports where rep.Name == r.Name select rep).FirstOrDefault()); }