#include #include #include #include int main() { auto t0 = std::chrono::high_resolution_clock::now(); //std::ofstream myfile; std::vector list; int data = 1024; int n = 0; while (true) { n++; list.push_back(data); auto t1 = std::chrono::high_resolution_clock::now(); auto delta_t = std::chrono::duration_cast(t1-t0).count(); //myfile.open("15cpp.csv", std::ios::trunc); //myfile << n << ", " << delta_t << "\n"; //myfile.close(); std::cout << n << ", " << delta_t << "\n"; } }