title: How to get timestamp exact enough to differ every time it's fetched?
body: <p>To generate global unique ids, I need something like a timestamp of their creation. But those ids can be generate directly after each other in source code. So the time with milliseconds isn't accurate enough and could unintentionally produce equal ids.</p>
  
  <p>Thefore I need a timestamp exact enough that it differs every time it is fetched. I though about CPU cycles, but I don't know if there is a way to get this information.</p>
  
  <p>Since this is for a realtime game, fetching the timestamp is performance related. Moreover, it is cross-plattform compatible to Linux, Windows and Mac, so of course the timestamp should be, too. If there is no standard way, I could live with three distinctive solutions for the systems.</p>