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

Method save_start_time

src/indicators.hpp:2439–2447  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2437 std::atomic<bool> multi_progress_mode_{false};
2438
2439 void save_start_time() {
2440 auto &show_elapsed_time = get_value<details::ProgressBarOption::show_elapsed_time>();
2441 auto &saved_start_time = get_value<details::ProgressBarOption::saved_start_time>();
2442 auto &show_remaining_time = get_value<details::ProgressBarOption::show_remaining_time>();
2443 if ((show_elapsed_time || show_remaining_time) && !saved_start_time) {
2444 start_time_point_ = std::chrono::high_resolution_clock::now();
2445 saved_start_time = true;
2446 }
2447 }
2448
2449 std::pair<std::string, int> get_prefix_text() {
2450 std::stringstream os;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected