Subject: [Boost-bugs] [Boost C++ Libraries] #12248: boost::log::attributes:timer accuracy shift
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-06-02 15:35:15
#12248: boost::log::attributes:timer accuracy shift
------------------------------+---------------------
Reporter: tib | Owner: andysem
Type: Bugs | Status: new
Milestone: To Be Determined | Component: log
Version: Boost 1.61.0 | Severity: Problem
Keywords: log timer |
------------------------------+---------------------
In the attached example, I have a timer and a clock attached to the log
events. In the formatting function, I compute an estimated time value
based on the timer and the timer creation datetime.
I then compare that estimated time and the clock of the log event. It
looks like there is a increasing shift (~25ms for 1 seconds of constant
logging).
In the example I wrote a timer that doesn't show this behavior and stays
synchronized with the clock.
Output example:
{{{
clock: 2016-06-02T11:31:39.790105 timer1: 2016-06-02T11:31:39.765871
diff1: 24ms timer2: 2016-06-02T11:31:39.790219 diff2: 0ms
clock: 2016-06-02T11:31:39.790105 timer1: 2016-06-02T11:31:39.765889
diff1: 24ms timer2: 2016-06-02T11:31:39.790238 diff2: 0ms
clock: 2016-06-02T11:31:39.790105 timer1: 2016-06-02T11:31:39.765907
diff1: 24ms timer2: 2016-06-02T11:31:39.790257 diff2: 0ms
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/12248> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:20 UTC