From 6f9582fb59be572f2cc305efec2d365f27d57be9 Mon Sep 17 00:00:00 2001 From: ackimixs Date: Tue, 30 Apr 2024 11:35:54 +0200 Subject: [PATCH] log --- arucoDetector.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/arucoDetector.cpp b/arucoDetector.cpp index b5fe987..e1c3b8c 100644 --- a/arucoDetector.cpp +++ b/arucoDetector.cpp @@ -89,10 +89,6 @@ int main(int argc, char *argv[]) if (tags.type == FLOWER) { std::cout << tags.id << " " << tags.name << " " << matrix.first.at(2, 0) << " " << matrix.first.at(0, 0) << std::endl; //ArucoDetector::flowerDetector(tags, matrix.first, matrix.first, robotPose); - auto now = std::chrono::high_resolution_clock::now(); - std::cout << "Time since last find: " << std::chrono::duration_cast(now - lastArucoFind).count() << "ms" << std::endl; - - lastArucoFind = now; } else if (tags.type == SOLAR_PANEL) { @@ -105,6 +101,12 @@ int main(int argc, char *argv[]) { break; } + + auto now = std::chrono::high_resolution_clock::now(); + std::cout << "Time since last find: " << std::chrono::duration_cast(now - lastArucoFind).count() << "ms" << std::endl; + + lastArucoFind = now; + std::cout << std::endl; }