On Fri, Jun 28, 2013 at 7:42 AM, Vicente J. Botet Escriba < vicente.botet@wanadoo.fr> wrote:
Unfortunately I don't know how to implement a real steady_clock on windows platform, and I was wondering if it shouldn't be removed. Of course if someone knows how to do it, patches are welcome.
I think I have pointed a very long time ago (but I can't find the discussion) that Ogre3D had a steady clock for years. If I remember correctly my message was discussed and waived but I'm not sure what was the reason exactly. Anyway the code is open-source under MIT license so you could get inspired from it: https://bitbucket.org/sinbad/ogre/src/0bba4f7cdb953c083aa9e3e15a13857e0988d4... I've used this code for years without any problem after I hit the issue of processor switches. As you can read, on Windows desktops the query will be done always on one core. I have no clear idea of the implications on performance, but I never had performance problem related to this so far. Joel Lamotte