MCPcopy Create free account
hub / github.com/DanielChappuis/reactphysics3d / reset

Method reset

src/utils/Profiler.cpp:106–119  ·  view source on GitHub ↗

Reset the profiling of the node

Source from the content-addressed store, hash-verified

104
105// Reset the profiling of the node
106void ProfileNode::reset() {
107 mNbTotalCalls = 0;
108 mTotalTime = std::chrono::duration<double, std::milli>::zero();
109
110 // Reset the child node
111 if (mChildNode != nullptr) {
112 mChildNode->reset();
113 }
114
115 // Reset the sibling node
116 if (mSiblingNode != nullptr) {
117 mSiblingNode->reset();
118 }
119}
120
121// Destroy the node
122void ProfileNode::destroy() {

Callers 2

updateMethod · 0.45

Calls 1

enterBlockOfCodeMethod · 0.80

Tested by

no test coverage detected