title: C++ obtaining milliseconds time on Linux -- clock() doesn't seem to work properly
body: <p>On Windows, <code>clock()</code> returns the time in milliseconds, but on this Linux box I'm working on, it rounds it to the nearest 1000 so the precision is only to the "second" level and not to the milliseconds level.</p>
  
  <p>I found a solution with Qt using the <code>QTime</code> class, instantiating an object and calling <code>start()</code> on it then calling <code>elapsed()</code> to get the number of milliseconds elapsed.</p>
  
  <p>I got kind of lucky because I'm working with Qt to begin with, but I'd like a solution that doesn't rely on third party libraries,  </p>
  
  <p>Is there no standard way to do this?</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>Please don't recommend Boost ..</p>
  
  <p>If Boost and Qt can do it, surely it's not magic, there must be something standard that they're using!</p>