| 2123 | std::atomic<bool> multi_progress_mode_{false}; |
| 2124 | |
| 2125 | void save_start_time() { |
| 2126 | auto &show_elapsed_time = |
| 2127 | get_value<details::ProgressBarOption::show_elapsed_time>(); |
| 2128 | auto &saved_start_time = |
| 2129 | get_value<details::ProgressBarOption::saved_start_time>(); |
| 2130 | auto &show_remaining_time = |
| 2131 | get_value<details::ProgressBarOption::show_remaining_time>(); |
| 2132 | if ((show_elapsed_time || show_remaining_time) && !saved_start_time) { |
| 2133 | start_time_point_ = std::chrono::high_resolution_clock::now(); |
| 2134 | saved_start_time = true; |
| 2135 | } |
| 2136 | } |
| 2137 | |
| 2138 | std::pair<std::string, int> get_prefix_text() { |
| 2139 | std::stringstream os; |
nothing calls this directly
no outgoing calls
no test coverage detected