#include #include #include #include "../lib/tcp_socket.hpp" using namespace std; using namespace chrono; int main() { try { // uint n = 10000; // vector thr; // for (uint i=0; i(t2 - t1).count() << endl; while (true) { auto t3 = high_resolution_clock::now(); mycli.push("Helooo"); auto t4 = high_resolution_clock::now(); cout << "Send : " << duration_cast(t4 - t3).count() << endl; auto t5 = high_resolution_clock::now(); string msg; try { msg = mycli.pull(); } catch (const ConnectionException err) { cout << err.what() << endl; msg = err.getData(); } cout << msg << endl; auto t6 = high_resolution_clock::now(); cout << "Recive : " << duration_cast(t6 - t5).count() << endl; // break; } } catch (const string err) { cout << err << endl; } return 0; }