MCPcopy Create free account
hub / github.com/AutonomousFieldRoboticsLab/SVIn / GetTotal

Method GetTotal

pose_graph/src/utils/Statistics.cpp:105–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104double Statistics::GetLastValue(std::string const& tag) { return GetLastValue(GetHandle(tag)); }
105double Statistics::GetTotal(size_t handle) {
106 std::lock_guard<std::mutex> lock(Instance().mutex_);
107 return Instance().stats_collectors_[handle].Sum();
108}
109double Statistics::GetTotal(std::string const& tag) { return GetTotal(GetHandle(tag)); }
110double Statistics::GetMean(size_t handle) {
111 std::lock_guard<std::mutex> lock(Instance().mutex_);

Callers

nothing calls this directly

Calls 1

SumMethod · 0.80

Tested by

no test coverage detected