Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Guilhem Saurel
hpp-fcl
Commits
baf0bebb
Commit
baf0bebb
authored
Aug 28, 2019
by
Joseph Mirabel
Browse files
[Test] Improve output of text_fcl_gjk
parent
eeb4c60b
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/test_fcl_gjk.cpp
View file @
baf0bebb
...
...
@@ -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
;
// statistics
clock_t
totalTimeGjkColl
=
0
;
...
...
@@ -280,10 +280,10 @@ BOOST_AUTO_TEST_CASE(distance_triangle_triangle_1)
totalTimeGjkNoColl
+=
results
[
i
].
timeGjk
;
}
}
std
::
cerr
<<
"Total time gjk: "
<<
totalTimeGjkNoColl
+
totalTimeGjkColl
<<
std
::
endl
;
std
::
cerr
<<
"Total
/ average
time gjk: "
<<
totalTimeGjkNoColl
+
totalTimeGjkColl
<<
", "
<<
FCL_REAL
(
totalTimeGjkNoColl
+
totalTimeGjkColl
)
/
FCL_REAL
(
CLOCKS_PER_SEC
*
N
)
<<
"s"
<<
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
<<
"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
;
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment