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

Method printAverageTimes

Utils/Timing.h:158–170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156 }
157
158 FORCE_INLINE static void printAverageTimes()
159 {
160 std::unordered_map<int, AverageTime>::iterator iter;
161 for (iter = Timing::m_averageTimes.begin(); iter != Timing::m_averageTimes.end(); iter++)
162 {
163 AverageTime &at = iter->second;
164 const double avgTime = at.totalTime / at.counter;
165 LOG_INFO << "Average time " << at.name.c_str() << ": " << avgTime << " ms";
166 }
167 if (Timing::m_startCounter != Timing::m_stopCounter)
168 LOG_INFO << "Problem: " << Timing::m_startCounter << " calls of startTiming and " << Timing::m_stopCounter << " calls of stopTiming. ";
169 LOG_INFO << "---------------------------------------------------------------------------\n";
170 }
171
172 FORCE_INLINE static void printTimeSums()
173 {

Callers 8

mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80

Calls 3

c_strMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected