Esempio n. 1
0
 public void CalculateMissedCount()
 {
     Timings.Sum(number => { if (number == -1)
                             {
                                 MissedCount++;
                             }
                             return(0); });
 }
Esempio n. 2
0
 public float AverageTimings()
 {
     return(MissedCount < Timings.Length ?
            Timings.Sum(number => { if (number == -1)
                                    {
                                        return 0;
                                    }
                                    return number; }) / (Timings.Length - MissedCount)
         : 0.0f);
 }