title: How to calculate compile time, execution time ,performance and success measure of a test?
body: <p>I have c++ program in that i want to have compiletime, execution time ,performance measure and success measure of a test.Right now i am calculating time as follows:</p>
  
  <pre><code>clock_t starts = clock();
  test_case();
  clock_t ends = clock();
  double time = (double)(ends - starts);
  </code></pre>
  
  <p>But i dont know wether "time" is compile time or execution time. If it is compile time then how will i get execution time or if it is execution time how will i get its compile time. Also, i need to have performance and success mesure of the "test_case()". So, suggest me how will i get it.</p>