title: Timing of my code keeps showing it takes 0 seconds
body: <p>What am I doing wrong? I'm trying to time this program when it looks at 5, 10, 15, 20, etc for n but everything comes back with it taking 0 seconds. I'm using visual studio 2013.</p>
  
  <pre><code>#include&lt;stdio.h&gt;
  #include&lt;time.h&gt;
  
  int main()
  {
  clock_t start_t, end_t, total_t;
  int n, first = 0, second = 1, next, c;
  
  printf("Enter the number of terms\n");
  scanf_s("%d", &amp;n);
  
  start_t = clock();
  printf("First %d terms of Fibonacci series are :-\n", n);
  
  for (c = 0; c &lt; n; c++)
  {
      if (c &lt;= 1)
          next = c;
      else
      {
          next = first + second;
          first = second;
          second = next;
      }
      printf("%d\n", next);
  }
  end_t = clock();
  total_t = (double)(end_t - start_t) / CLOCKS_PER_SEC;
  printf("Total time taken by CPU: %f\n", total_t);
  int  num;
  scanf_s("%d", &amp;num);
  
  return 0;
  </code></pre>
  
  <p>}</p>