MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/PositionBasedDynamics / printTimeSums

Method printTimeSums

Utils/Timing.h:172–184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170 }
171
172 FORCE_INLINE static void printTimeSums()
173 {
174 std::unordered_map<int, AverageTime>::iterator iter;
175 for (iter = Timing::m_averageTimes.begin(); iter != Timing::m_averageTimes.end(); iter++)
176 {
177 AverageTime &at = iter->second;
178 const double timeSum = at.totalTime;
179 LOG_INFO << "Time sum " << at.name.c_str() << ": " << timeSum << " ms";
180 }
181 if (Timing::m_startCounter != Timing::m_stopCounter)
182 LOG_INFO << "Problem: " << Timing::m_startCounter << " calls of startTiming and " << Timing::m_stopCounter << " calls of stopTiming. ";
183 LOG_INFO << "---------------------------------------------------------------------------\n";
184 }
185 };
186}
187

Callers

nothing calls this directly

Calls 3

c_strMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected