title: How to calculate a time difference in C++
body: <p>What's the best way to calculate a time difference in C++? I'm timing the execution speed of a program, so I'm interested in milliseconds. Better yet, seconds.milliseconds..</p>
  
  <p>The accepted answer works, but needs to include ctime or time.h as noted in the comments. </p>