예제 #1
0
        public bool CheckLap()
        {
            history.Record();

            Frequency = FrequencyMeter.GetFrequency(history);
            return(Frequency == 0 || Frequency >= BaseFrequency);
        }
예제 #2
0
        /// <summary>
        /// Records a time stamp, and filters the current lap.
        /// </summary>
        /// <returns><see langword="true"/> if the current lap is available; otherwise, <see langword="false"/>.</returns>
        public bool CheckLap()
        {
            history.Record();

            var frequency   = FrequencyMeter.GetFrequency(history);
            var isAvailable = frequency <= MaxFrequency;

            if (isAvailable)
            {
                ArrangedFrequency = frequency;
            }
            else
            {
                history.RemoveAt(history.Count - 1);
            }

            return(isAvailable);
        }