From 00b6f44912693df2b3e1ac4eb23a97c4b1b25cb3 Mon Sep 17 00:00:00 2001 From: Arthur Bols Date: Thu, 16 May 2019 08:44:54 +0200 Subject: [PATCH] Fixed time output --- TMI-practicum/Program.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/TMI-practicum/Program.cs b/TMI-practicum/Program.cs index 2c9ff53..7a4034d 100644 --- a/TMI-practicum/Program.cs +++ b/TMI-practicum/Program.cs @@ -38,13 +38,14 @@ namespace TMI_practicum solved = SweepLineAlgorithm.Solve(parsed.Item3); break; case 3: - throw new NotImplementedException(); + solved = SweepLineEffAlgorithm.Solve(parsed.Item3); + break; default: throw new ArgumentException("Algorithm with id: " + parsed.Item1 + " is not defined!"); } stopwatch.Stop(); - WriteOutput(solved, stopwatch.ElapsedMilliseconds / 1000.0); + WriteOutput(solved, stopwatch.ElapsedMilliseconds); }