|
Boost Users : |
Subject: Re: [Boost-users] Periodic Timer
From: Igor R (boost.lists_at_[hidden])
Date: 2008-09-10 07:12:09
> Also, wouldn't the function call itself have an overhead? If yes, is there a
> way to get around it ?
>
Well, there exists some overhead at each "iteration", but if you've
got a fixed reference-time, these overheads wouldn't accumulate, so
after 2 or 1000 iterations you'd have about the same deviation.
As for the deviation itself, you just have to try and evaluate it with
your compiler/machine...
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