diff --git a/main.cpp b/main.cpp index c1756bb..4a63d2c 100644 --- a/main.cpp +++ b/main.cpp @@ -125,8 +125,10 @@ int main() { } std::vector vec_matched_path; std::cout << "info: >>> match file begin <<<" << std::endl; + int j = 0; for (auto it:vec_file_name) { + ++j; auto datetime = cvt_filename_to_datetime(it); auto vec_search_path = get_search_paths(it, BEGIN_TIME_INTERVAL, END_TIME_INTERVAL); for (auto dir:vec_search_path) @@ -140,6 +142,7 @@ int main() { } } } + std::cout << "info: match progress " << j << "/" << vec_file_name.size() << std::endl; } std::cout << "info: >>> match file end(" << vec_matched_path.size() << ") <<<" << std::endl; std::cout << "info: >>> copy file begin <<<" << std::endl; @@ -154,6 +157,10 @@ int main() { { ++i; } + if (i % 50 == 0) + { + std::cout << "info: copy progress " << i << "/" << vec_matched_path.size() << std::endl; + } } std::cout << "info: >>> copy file end(" << i << ") <<<" << std::endl;