Re: [boost] [interprocess] Getting boot-up time is unreliable on Windows
Maybe the RDTSC instruction might help for x86 processors, as it returns a
number of ticks which is reset at startup. It is also extremely fast.
Le 22 déc. 2016 13:04, "Thomas Dahms"
On 12/22/16 16:40, Remi Chateauneu wrote:
Maybe the RDTSC instruction might help for x86 processors, as it returns a number of ticks which is reset at startup. It is also extremely fast.
I would recommend against using it directly since it is not synchronized between CPU cores. QueryPerformanceCounter can be used instead. However, I don't know how applicable that would be for Boost.Interprocess case, especially considering the possibility of overflow.
participants (2)
-
Andrey Semashev
-
Remi Chateauneu