| 230 | } |
| 231 | |
| 232 | void ProgressLogger::setProgress(SignedSize value) const |
| 233 | { |
| 234 | // update only if at least 1 second has passed |
| 235 | if (last_invoke_ == time(nullptr)) |
| 236 | { |
| 237 | return; |
| 238 | } |
| 239 | last_invoke_ = time(nullptr); |
| 240 | current_logger_->setProgress(value, recursion_depth_); |
| 241 | } |
| 242 | void ProgressLogger::nextProgress() const |
| 243 | { |
| 244 | auto p = current_logger_->nextProgress(); |
no outgoing calls