title: Calculate Execution TIme using C++, rather than using <time.h>
body: <p>I need to calculate the execution time of a C++ program. I am currently using the c-style head, <code>&lt;time.h&gt;</code> with the following code:</p>
  
  <pre><code>clock_t tStart = clock();
  ...
  printf("Execution Time: %.2fs\n", (double)(clock() - tStart)/CLOCKS_PER_SEC);
  </code></pre>
  
  <p>Is there a c++ header I can use to calculate execution time? Please note this needs to be cross-platform compatible. </p>