Fixed time output
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user