diff --git a/bin/Debug/lab01.exe b/bin/Debug/lab01.exe index 5662ce5..d4b637f 100644 Binary files a/bin/Debug/lab01.exe and b/bin/Debug/lab01.exe differ diff --git a/lab01.depend b/lab01.depend index 08bbf50..4bebf5c 100644 --- a/lab01.depend +++ b/lab01.depend @@ -41,7 +41,7 @@ -1749672481 c:\mpei\programming\c++ 2sem\lab03\alex\project\histogram.h +1749676301 c:\mpei\programming\c++ 2sem\lab03\alex\project\histogram.h @@ -49,16 +49,16 @@ -1749672481 c:\mpei\programming\c++ 2sem\lab03\alex\project\svg.h +1749676301 c:\mpei\programming\c++ 2sem\lab03\alex\project\svg.h -1749673891 source:c:\mpei\programming\c++ 2sem\lab03\alex\project\histogram.cpp +1749676301 source:c:\mpei\programming\c++ 2sem\lab03\alex\project\histogram.cpp "histogram.h" -1749672481 source:c:\mpei\programming\c++ 2sem\lab03\alex\project\svg.cpp +1749676301 source:c:\mpei\programming\c++ 2sem\lab03\alex\project\svg.cpp "svg.h" "text.h" diff --git a/main.cpp b/main.cpp index 5c71763..1fd00fc 100644 --- a/main.cpp +++ b/main.cpp @@ -4,6 +4,7 @@ #include #include + size_t write_data(void* ptr, size_t size, size_t nmemb, std::stringstream* stream) { size_t data_size = size * nmemb; stream->write(static_cast(ptr), data_size); @@ -29,6 +30,13 @@ Input download(const std::string& url) { exit(1); } + double connect_time = 0.0; + if (curl_easy_getinfo(curl, CURLINFO_CONNECT_TIME, &connect_time) == CURLE_OK) { + std::cerr << "Connect time: " << connect_time << " seconds\n"; + } else { + std::cerr << "Could not get connect time info.\n"; + } + curl_easy_cleanup(curl); return input_data(buffer, false); } diff --git a/obj/Debug/main.o b/obj/Debug/main.o index 9ae4168..8b7e4eb 100644 Binary files a/obj/Debug/main.o and b/obj/Debug/main.o differ