Skip to content

Commit bc5101c

Browse files
committed
[timer] Add a timer to the doDetection function
1 parent 143f1c0 commit bc5101c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/sofa/collisionAlgorithm/CollisionPipeline.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,11 @@ 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();
69+
std::string timerName = std::string("-- Do detection : ") + obj->getName();
7070

71-
// sofa::helper::AdvancedTimer::stepBegin(timerName.c_str());
71+
sofa::helper::AdvancedTimer::stepBegin(timerName.c_str());
7272
component->doDetection();
73-
// sofa::helper::AdvancedTimer::stepEnd(timerName.c_str());
73+
sofa::helper::AdvancedTimer::stepEnd(timerName.c_str());
7474
}
7575
}
7676

0 commit comments

Comments
 (0)