|
Boost Users : |
Subject: Re: [Boost-users] boost timer
From: Lars Viklund (zao_at_[hidden])
Date: 2011-08-15 10:07:18
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.
-- Lars Viklund | zao_at_[hidden]
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net