From bacf5af6ff71685077a037d7d38dcbf76dd1b2b5 Mon Sep 17 00:00:00 2001 From: incredibleLeitman Date: Tue, 8 Dec 2020 11:54:30 +0100 Subject: [PATCH 1/2] removed test comparison output --- main.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/main.cpp b/main.cpp index 6d8ec9a..1dec3a4 100644 --- a/main.cpp +++ b/main.cpp @@ -84,7 +84,6 @@ int main (int argc, char **argv) { std::list hull; std::chrono::duration total; - auto start2 = std::chrono::high_resolution_clock::now(); // TODO: remove, just for comparison for (int i = 0; i < runs; ++i) { std::cout << "running quickhull perf mode " << (i + 1) << " of " << runs << "..." << std::endl; @@ -99,11 +98,6 @@ int main (int argc, char **argv) } else { - // --------------------------------------------------------------- - // TODO: remove, just for comparison - auto diff2 = std::chrono::duration(std::chrono::high_resolution_clock::now() - start2); - std::cout << "total time spent: " << diff2.count() << "ms" << std::endl; - // --------------------------------------------------------------- std::cout << "average time spent: " << total.count()/runs << "ms" << std::endl; Quickhull::show(points, hull); } From 2615c737bb65df6ac2798c76444c4770831d0f13 Mon Sep 17 00:00:00 2001 From: incredibleLeitman Date: Tue, 8 Dec 2020 11:58:58 +0100 Subject: [PATCH 2/2] removed inner diff output --- Quickhull.h | 5 ----- 1 file changed, 5 deletions(-) diff --git a/Quickhull.h b/Quickhull.h index 99a486f..491f37f 100644 --- a/Quickhull.h +++ b/Quickhull.h @@ -15,8 +15,6 @@ class Quickhull public: static void get_hull(std::list &input, std::list &output, bool akl) { - auto start = std::chrono::high_resolution_clock::now(); - // Get leftmost and rightmost point Point leftmost(INFINITY, 0.0), rightmost(-INFINITY, 0.0); @@ -92,9 +90,6 @@ public: // Call get_hull_with_line with the left points, as well as with the right points, and the line get_hull_with_line(points_left, output, line); get_hull_with_line(points_right, output, line); - - auto diff = std::chrono::duration(std::chrono::high_resolution_clock::now() - start); - std::cout << "-- inner diff: " << diff.count() << "ms" << std::endl; } static void show (std::list &points, std::list& hull)