MCPcopy Create free account
hub / github.com/LiangliangNan/PolyFit / ProgressLogger

Method ProgressLogger

code/basic/progress.cpp:87–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85//_________________________________________________________
86
87ProgressLogger::ProgressLogger(std::size_t max_val, const std::string& task_name, bool quiet)
88: max_val_(max_val), task_name_(task_name), quiet_(quiet)
89{
90 cur_val_ = 0 ;
91 cur_percent_ = 0 ;
92 Progress::instance()->push() ;
93 if(!quiet_) {
94 Progress::instance()->notify(0) ;
95 }
96}
97
98void ProgressLogger::reset(std::size_t max_val) {
99 max_val_ = max_val ;

Callers

nothing calls this directly

Calls 3

pushMethod · 0.80
instanceFunction · 0.70
notifyMethod · 0.45

Tested by

no test coverage detected