Commit baf0bebb authored by Joseph Mirabel's avatar Joseph Mirabel
Browse files

[Test] Improve output of text_fcl_gjk

parent eeb4c60b
...@@ -268,7 +268,7 @@ BOOST_AUTO_TEST_CASE(distance_triangle_triangle_1) ...@@ -268,7 +268,7 @@ BOOST_AUTO_TEST_CASE(distance_triangle_triangle_1)
} }
} }
} }
std::cerr << "nCol = " << nCol << std::endl; std::cerr << "nCol / nTotal = " << nCol << " / " << N << std::endl;
std::cerr << "nDiff = " << nDiff << std::endl; std::cerr << "nDiff = " << nDiff << std::endl;
// statistics // statistics
clock_t totalTimeGjkColl = 0; clock_t totalTimeGjkColl = 0;
...@@ -280,10 +280,10 @@ BOOST_AUTO_TEST_CASE(distance_triangle_triangle_1) ...@@ -280,10 +280,10 @@ BOOST_AUTO_TEST_CASE(distance_triangle_triangle_1)
totalTimeGjkNoColl += results [i].timeGjk; totalTimeGjkNoColl += results [i].timeGjk;
} }
} }
std::cerr << "Total time gjk: " << totalTimeGjkNoColl + totalTimeGjkColl std::cerr << "Total / average time gjk: " << totalTimeGjkNoColl + totalTimeGjkColl
<< std::endl; << ", " << FCL_REAL(totalTimeGjkNoColl + totalTimeGjkColl) / FCL_REAL(CLOCKS_PER_SEC*N) << "s" << std::endl;
std::cerr << "-- Collisions -------------------------" << std::endl; std::cerr << "-- Collisions -------------------------" << std::endl;
std::cerr << "Total time gjk: " << totalTimeGjkColl << std::endl; std::cerr << "Total / average time gjk: " << totalTimeGjkColl << ", " << FCL_REAL(totalTimeGjkColl) / FCL_REAL(CLOCKS_PER_SEC*nCol) << "s" << std::endl;
std::cerr << "-- No collisions -------------------------" << std::endl; std::cerr << "-- No collisions -------------------------" << std::endl;
std::cerr << "Total time gjk: " << totalTimeGjkNoColl << std::endl; std::cerr << "Total / average time gjk: " << totalTimeGjkNoColl << ", " << FCL_REAL(totalTimeGjkNoColl) / FCL_REAL(CLOCKS_PER_SEC*(N-nCol)) << "s" << std::endl;
} }
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment