MCPcopy Create free account
hub / github.com/acl-dev/acl / reset_statistics

Method reset_statistics

lib_acl_cpp/independent/connpool/src/connect_pool.cpp:214–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

212}
213
214void connect_pool::reset_statistics(int inter)
215{
216 time_t now = time(NULL);
217 lock_->lock();
218 if (now - last_ >= inter)
219 {
220 last_ = now;
221 current_used_ = 0;
222 }
223 lock_->unlock();
224}
225
226} // namespace acl_min

Callers 1

statisticsMethod · 0.45

Calls 2

lockMethod · 0.45
unlockMethod · 0.45

Tested by

no test coverage detected