title: Implement chrono time in Linux and Visual Studio 2017
body: <p>I need to record the elapsed time in microseconds for my program and I used chrono in c++. It is compulsory for my assignment to run in Linux environment. Problem is when I run this in Linux Ubuntu in a virtual box(have included -std=c++11), the result is way shorter than when I run this code in Visual Studio 2017. The difference is 2000++ microseconds. Perhaps someone know why the result in both places are different?</p>
  
  <pre><code>auto start = chrono::steady_clock::now();   //record the starting time
  { 
      //function call
  }
  
  auto end = chrono::steady_clock::now();   //record the finish time 
  double elapsed_time = double(chrono::duration_cast &lt;chrono::microseconds&gt; (end - start).count()); // elapsed time
  time.push_back(elapsed_time);  //vector&lt;double&gt;time that collect all the times
  </code></pre>