Boost logo

Boost :

Subject: Re: [boost] boost::thread dependency on boost::chrono (windows implementation)
From: Klaim - Joël Lamotte (mjklaim_at_[hidden])
Date: 2013-06-28 05:57:31

On Fri, Jun 28, 2013 at 7:42 AM, Vicente J. Botet Escriba <
vicente.botet_at_[hidden]> 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:

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
I have no clear idea of the implications on performance, but I never had
performance problem related to this so far.

Joel Lamotte

Boost list run by bdawes at, gregod at, cpdaniel at, john at