Skip to content

Commit ff6ebae

Browse files
committed
[timer] Add a timer to the doDetection function
1 parent 3f98638 commit ff6ebae

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/CollisionAlgorithm/CollisionPipeline.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,9 @@ class CollisionLoop : public core::objectmodel::BaseObject {
6666

6767
void processObject(simulation::Node*, core::objectmodel::BaseObject* obj) {
6868
if (CollisionAlgorithm * component = dynamic_cast<CollisionAlgorithm *>(obj)) {
69-
// std::string timerName = std::string("-- Do detection : ") + obj->getName();
70-
71-
// sofa::helper::AdvancedTimer::stepBegin(timerName.c_str());
69+
sofa::helper::AdvancedTimer::stepBegin("doDetection - "+obj->getName());
7270
component->doDetection();
73-
// sofa::helper::AdvancedTimer::stepEnd(timerName.c_str());
71+
sofa::helper::AdvancedTimer::stepEnd("doDetection - "+obj->getName());
7472
}
7573
}
7674

0 commit comments

Comments
 (0)