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

Method GetSum

IntelPresentMon/Core/source/pmon/StatisticsTracker.cpp:67–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65 return meanMs / 1000.;
66 }
67 double StatisticsTracker::GetSum() const
68 {
69 if (values.empty()) {
70 return -1.;
71 }
72 const double sumMs = std::accumulate(values.begin(), values.end(), 0.);
73 return sumMs;
74 }
75 size_t StatisticsTracker::GetCount() const
76 {
77 return values.size();

Callers 1

WriteStats_Method · 0.80

Calls 3

emptyMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected