title: What's the best replacement for timeGetTime to avoid wrap-around?
body: <p><a href="http://msdn.microsoft.com/en-us/library/dd757629(VS.85).aspx" rel="noreferrer">timeGetTime</a> seems to be quite good to query for system time. However, its return value is 32-bit only, so it wraps around every 49 days approx.</p>
  
  <p>It's not too hard to detect the rollover in calling code, but it adds some complexity, and (worse) requires keeping a state.</p>
  
  <p>Is there some replacement for <a href="http://msdn.microsoft.com/en-us/library/dd757629(VS.85).aspx" rel="noreferrer">timeGetTime</a> that would not have this wrap-around problem (probably by returning a 64-bit value), and have roughly the same precision and cost?</p>