title: Chrono - The difference between two points in time in milliseconds?
body: <p>How can I get (using the std::chrono library) the difference between two points in time in milliseconds?</p>
  
  <p>I could do that using this:</p>
  
  <pre><code>std::chrono::time_point&lt;std::chrono::system_clock&gt; now = std::chrono::system_clock::now();
  
  std::chrono::time_point&lt;std::chrono::system_clock&gt; foo = now + std::chrono::milliseconds(100);
  
  std::chrono::duration&lt;float&gt; difference = foo - now;
  
  const int milliseconds = difference.count() * 1000;
  </code></pre>
  
  <p><strong>How can I get this time in milliseconds, so I can use the duration as a unsigned int, and not a float and then multiply by 1000?</strong></p>