| 2071 | } |
| 2072 | |
| 2073 | void tick() { |
| 2074 | { |
| 2075 | std::lock_guard<std::mutex> lock{mutex_}; |
| 2076 | const auto type = get_value<details::ProgressBarOption::progress_type>(); |
| 2077 | if (type == ProgressType::incremental) |
| 2078 | progress_ += 1; |
| 2079 | else |
| 2080 | progress_ -= 1; |
| 2081 | } |
| 2082 | save_start_time(); |
| 2083 | print_progress(); |
| 2084 | } |
| 2085 | |
| 2086 | size_t current() { |
| 2087 | std::lock_guard<std::mutex> lock{mutex_}; |