MCPcopy Create free account
hub / github.com/KTH-RPL/dufomap / save_start_time

Method save_start_time

src/indicators.hpp:2125–2136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected