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