title: Getting an accurate execution time in C++ (micro seconds)
body: <p>I want to get an accurate execution time in micro seconds of my program implemented with C++.
  I have tried to get the execution time with clock_t but it's not accurate.</p>
  <p>(Note that micro-benchmarking is <em>hard</em>.  An accurate timer is only a small part of what's necessary to get meaningful results for short timed regions.  See   <a href="https://stackoverflow.com/questions/60291987/idiomatic-way-of-performance-evaluation">Idiomatic way of performance evaluation?</a> for some more general caveats)</p>