title: calculating delta incorrectly
body: <p>I am trying to calculate the delta in milliseconds with something like this: </p>
  
  <pre><code>int olddelta = 0;
      int delta = 0;
      const clock_t begin_time = clock();
      while (true) {
          olddelta=delta;
          delta=clock()-olddelta;
          cout&lt;&lt;delta&lt;&lt;endl;
  }
  </code></pre>
  
  <p>however this is not working as the delta is definitely not over 4000, and it seems to get progressively higher. What have i done incorrectly? </p>