title: How to use more cpu with Visual Studio
body: <p>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?</p>
  
  <p>...</p>
  
  <pre><code>auto t1 = Clock::now();
  insertionSort(A1, size);
  auto t2 = Clock::now();
  
  cout &lt;&lt; "insertionSort time: ";
  cout &lt;&lt; std::chrono::duration_cast&lt;std::chrono::nanoseconds&gt;(t2 - t1).count() / 1000000000.0f;
  cout &lt;&lt; " Seconds.\n";
  </code></pre>
  
  <p>...</p>
  
  <p>Working correctly but not using all cpu.</p>