示例#1
0
 public ReportItem getReport(Run r)
 {
     return (from ReportItem rep in Reports
             where rep.Name == r.Name
             select rep).FirstOrDefault();
 }
示例#2
0
 public ReportItem(Run r)
 {
     Name = r.Name;
     totalCalls++;
     aggregateTime += r.totalMs;
     lowTime = r.totalMs;
     highTime = r.totalMs;
 }
示例#3
0
        public void UpdateReportItem(Run r)
        {
            totalCalls++;
            aggregateTime += r.totalMs;

            if (r.totalMs < lowTime)
                lowTime = r.totalMs;

            if (r.totalMs > highTime)
                highTime = r.totalMs;
        }
示例#4
0
 public ReportItem getReport(Run r)
 {
     return((from ReportItem rep in Reports
             where rep.Name == r.Name
             select rep).FirstOrDefault());
 }