コード例 #1
0
        private string RemainingTime()
        {
            if (_totalNumberOfMutants == 0 || _numberOfMutantsRun == 0)
            {
                return("NA");
            }

            var elapsed   = _stopWatch.GetElapsedMillisecond();
            var remaining = (_totalNumberOfMutants - _numberOfMutantsRun) * elapsed / _numberOfMutantsRun;

            return(MillisecondsToText(remaining));
        }
コード例 #2
0
        private string RemainingTime()
        {
            if (_mutantsToBeTested == 0 || _numberOfMutantsRan == 0)
            {
                return("NA");
            }

            var elapsed   = _stopWatch.GetElapsedMillisecond();
            var remaining = (_mutantsToBeTested - _numberOfMutantsRan) * elapsed / _numberOfMutantsRan;

            return(MillisecondsToText(remaining));
        }