I'm trying to calculate time of 3 different sort algorithms. When the program is working , my cpu usage in this application is %12 in task manager and i want to run it with max cpu power. How can i do it?
...
auto t1 = Clock::now();
insertionSort(A1, size);
auto t2 = Clock::now();
cout << "insertionSort time: ";
cout << std::chrono::duration_cast<std::chrono::nanoseconds>(t2 - t1).count() / 1000000000.0f;
cout << " Seconds.\n";
...
Working correctly but not using all cpu.