title: MFC measure function in milliseconds
body: <p>How can i count the millisecond a certain function (called repeatedly) takes ?<br>
  I thought of:<br>
  <code>CTime::GetCurrentTM()</code> before,<br>
  <code>CTime::GetCurrentTM()</code> after,  </p>
  
  <p>And then insert the result to <code>CTimeSpan diff = after - before</code>.<br>
  Finally store that diff to global member that sum all diffs since i want to know the total time this function spent.</p>
  
  <p>but it will give the answer in seconds and not milliseconds.</p>