// // Created by zx on 22-11-22. // #include "TimerRecord.h" #include // // Created by zx on 22-11-3. // void TimerRecord::PrintAll() { std::cout <<">> ===== Printing run time ====="< [ " << r.first << " ] average time usage: " << std::accumulate(r.second.timesqueue_.begin(), r.second.timesqueue_.end(), 0.0) / double(r.second.timesqueue_.size()) << " ms , called times: " << r.second.timesqueue_.size()<< " max:"<<*v.second<<"ms , min:"<<*v.first<<"ms"<>> ===== Printing run time end ====="< TimerRecord::records_;//=std::map(); std::mutex TimerRecord::mutex_;