MCPcopy Create free account
hub / github.com/TASEmulators/fceux / average

Method average

src/profiler.cpp:72–81  ·  view source on GitHub ↗

-------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

70}
71//-------------------------------------------------------------------------
72double funcProfileRecord::average(void)
73{
74 double avg = 0.0;
75
76 if (numCalls)
77 {
78 avg = sum.toSeconds() / static_cast<double>(numCalls);
79 }
80 return avg;
81}
82//-------------------------------------------------------------------------
83//---- Profile Scoped Function Class
84//-------------------------------------------------------------------------

Callers 1

updateMethod · 0.80

Calls 1

toSecondsMethod · 0.80

Tested by

no test coverage detected