title: Calculating execution time of my program
body: <p>So in my image processing project, I'm currently using gettickcount() to calculate the average time it takes for each frame to be processed. However, for the sake of speed, I chose to process every other frame. Theoretically, the program should run faster and it does. However, the values I'm getting from gettickcount remain the same. Which leads me to believe that the gettickcount function is still counting the ticks of the nonprocessed images of the program. </p>
  
  <pre><code>while(capture.grab())
  {
      int64 t = getTickCount();
  
      if(count == 0) //count is each image number. this segment processes the first image
      {
  
      }
  
      if(count % 2 == 1) //processes every other image
      {
  
      }
  }
  </code></pre>
  
  <p>Does the getTickCount function still count the ticks from the if(count % 2 == 1) even if it isn't employed? </p>
  
  <p>thanks!</p>