title: clock() returns 0 even with roughly a 5 second pause when using C
body: <p>given the code below</p>
  
  <pre><code>#include&lt;time.h&gt; 
  #include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  
  void firstSequence()
  {
      int columns = 999999;
      int rows = 400000;
      int **matrix;
      int j;
      int counter = 0;
      matrix = (int **)malloc(columns*sizeof(int*));  
      for(j=0;j&lt;columns;j++)
      {
              matrix[j]=(int*)malloc(rows*sizeof(int));
      }
      for(counter = 1;counter &lt; columns; counter ++)
      {
          free(matrix[counter]);
      }
  }
  
  void secondSequence()
  {
      int columns = 111;
      int rows = 600000;
      int **matrix;
      int j;
      matrix = (int **)malloc(columns*sizeof(int*));  
      for(j=0;j&lt;columns;j++)
      {
                matrix[j]=(int*)malloc(rows*sizeof(int));
      }
  }
  
  
  int main()
  {
      long t1;
      long t2;
      long diff;
      t1 = clock(); 
      firstSequence();
      t2 = clock();
  
      diff = (t2-t1) * 1000.0 / CLOCKS_PER_SEC;
      printf("%f",t2);
  
      t1 = clock(); 
      secondSequence();
      t2 = clock();
      diff = (t2-t1) * 1000.0 / CLOCKS_PER_SEC;  
      printf("%f",diff);
  
  
  
      return(0);
  }
  </code></pre>
  
  <p>I need to be able to see how long it takes for both sequence one and sequence two to run. However both times I get 0 as the time elapsed. From looking online I have seen that this can be an issue but I do not how to fix the issue</p>