Boost logo

Boost :

Subject: Re: [boost] [interprocess] Getting boot-up time is unreliable on Windows
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2016-12-22 08:55:30


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.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk