title: Timing the execution of statements - C++
body: <blockquote>
  <p><strong>Possible Duplicate:</strong><br />
  <a href="https://stackoverflow.com/questions/1861294/how-to-calculate-execution-time-of-a-code-snippet-in-c">How to Calculate Execution Time of a Code Snippet in C++</a></p>
  </blockquote>
  
  <p>How can I get the time spent by a particular set of statements in some C++ code?</p>
  <p>Something like the <code>time</code> utility under Linux but only for some particular statements.</p>