Reset the profiling of the node
| 104 | |
| 105 | // Reset the profiling of the node |
| 106 | void 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 |
| 122 | void ProfileNode::destroy() { |
no test coverage detected