添加网速统计功能

This commit is contained in:
xiongziliang
2020-10-01 11:02:00 +08:00
parent bae52db6ba
commit 7f3877e437
9 changed files with 68 additions and 0 deletions

View File

@@ -79,6 +79,10 @@ public:
_list_cb.emplace_back(std::move(cb));
}
void onSegmentSize(uint64_t bytes) {
_speed += bytes;
}
private:
bool _is_regist = false;
RingType::Ptr _ring;