MCPcopy Create free account
hub / github.com/GameTechDev/PresentMon / GetMean

Method GetMean

IntelPresentMon/Core/source/pmon/StatisticsTracker.cpp:59–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57 return values.back() / 1000.;
58 }
59 double StatisticsTracker::GetMean() const
60 {
61 if (values.empty()) {
62 return -1.;
63 }
64 const double meanMs = std::accumulate(values.begin(), values.end(), 0.) / GetCount();
65 return meanMs / 1000.;
66 }
67 double StatisticsTracker::GetSum() const
68 {
69 if (values.empty()) {

Callers 3

WriteStats_Method · 0.45

Calls 3

emptyMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected