MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / getAverageTime

Method getAverageTime

src/openrct2/profiling/Profiling.h:37–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35 virtual double getMaxTime() const = 0;
36
37 double getAverageTime() const
38 {
39 const auto count = getCallCount();
40 return count > 0 ? getTotalTime() / static_cast<double>(count) : 0.0;
41 }
42
43 virtual std::vector<Function*> getParents() const = 0;
44 virtual std::vector<Function*> getChildren() const = 0;

Callers 3

writeCSVFunction · 0.80
writeJSONFunction · 0.80
getDataMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected