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

Method IncrementOne

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

Source from the content-addressed store, hash-verified

93size_t StatsCollectorImpl::GetHandle() const { return handle_; }
94void StatsCollectorImpl::AddSample(double sample) const { Statistics::Instance().AddSample(handle_, sample); }
95void StatsCollectorImpl::IncrementOne() const { Statistics::Instance().AddSample(handle_, 1.0); }
96void Statistics::AddSample(size_t handle, double seconds) {
97 std::lock_guard<std::mutex> lock(Instance().mutex_);
98 stats_collectors_[handle].AddValue(seconds);

Callers

nothing calls this directly

Calls 1

AddSampleMethod · 0.45

Tested by

no test coverage detected