We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ad6366 commit f4ca418Copy full SHA for f4ca418
libcyphal_demo/src/file_downloader.hpp
@@ -275,7 +275,11 @@ class FileDownloader final
275
276
void complete()
277
{
278
- std::cout << "\nDownload completed (err=" << file_stats_.file_error.value << ").\n" << std::flush;
+ const auto duration = time_provider_.now() - file_stats_.start_time;
279
+ const auto duration_ms = std::chrono::duration_cast<std::chrono::milliseconds>(duration).count();
280
+ std::cout << "\nDownload completed (err=" << file_stats_.file_error.value //
281
+ << ", time=" << duration_ms << "ms).\n"
282
+ << std::flush;
283
284
get_info_promise_.reset();
285
get_info_client_.reset();
0 commit comments