$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] boost timer
From: Chris Cleeland (chris.cleeland_at_[hidden])
Date: 2011-08-15 10:25:02
On Mon, Aug 15, 2011 at 9:07 AM, Lars Viklund <zao_at_[hidden]> wrote:
> On Mon, Aug 15, 2011 at 08:54:09AM -0500, Chris Cleeland wrote:
>> If you are on an x86 platform, you can use the "rdtsc" assembly
>> instruction to obtain processor tick counts.
>
> Note that many processors do not synchronize such low-level tickcounts
> between cores or packages, so unless you have thread affinity for a
> single particular one, you're in deep water unless you know your
> hardware does not exhibit these kinds of behaviours.
Good point; thanks for pointing that out.
In my case, I have thread affinity, guaranteed by other software
requirements that pre-date the timing, so I'd forgotten.