title: C# Timer for Millisecond Waits
body: <p>Every n*x milliseconds I perform an action where n = 0, 1, 2, ...; x is some increment.</p>
  
  <p>Example - every 25 milliseconds I perform a calculation.</p>
  
  <p>This action can take fewer than x seconds for each increment. As a result, I need a way <strong>in C#</strong> to wait the remaining (x - actual_time) milliseconds.</p>
  
  <p>Example - if the calculation only takes 20 milliseconds, I need to wait 5 more milliseconds before re-running the calculation.</p>
  
  <p>Please advise.</p>
  
  <p>Thanks,
  Kevin</p>