1
0

Fixed time output

This commit is contained in:
2019-05-16 08:44:54 +02:00
parent cea7188d55
commit 00b6f44912

View File

@@ -38,13 +38,14 @@ namespace TMI_practicum
solved = SweepLineAlgorithm.Solve(parsed.Item3); solved = SweepLineAlgorithm.Solve(parsed.Item3);
break; break;
case 3: case 3:
throw new NotImplementedException(); solved = SweepLineEffAlgorithm.Solve(parsed.Item3);
break;
default: default:
throw new ArgumentException("Algorithm with id: " + parsed.Item1 + " is not defined!"); throw new ArgumentException("Algorithm with id: " + parsed.Item1 + " is not defined!");
} }
stopwatch.Stop(); stopwatch.Stop();
WriteOutput(solved, stopwatch.ElapsedMilliseconds / 1000.0); WriteOutput(solved, stopwatch.ElapsedMilliseconds);
} }