Boost C++ Libraries: Ticket #9274: lost of precission on system_clock input https://svn.boost.org/trac10/ticket/9274 <p> On platforms having a higher precision than microseconds, there is a lost of precision on system_clock input. </p> <pre class="wiki"> Test output: teeks99-07f-Ubuntu12.04-64 - chrono - test_7868_d / clang-linux-3.0 Rev 86366 / Sun, 20 Oct 2013 02:39:19 +0000 Compile [2013-10-20 05:11:06 UTC]: succeed "clang++-3.0" -c -x c++ -Wextra -Wno-long-long -Wno-variadic-macros -pedantic -O0 -g -fno-inline -Wall -pedantic -g -fPIC -Wextra -Wno-long-long -Wno-variadic-macros -pedantic -DBOOST_ALL_NO_LIB=1 -DBOOST_CHRONO_DYN_LINK=1 -DBOOST_CHRONO_THREAD_DISABLED -DBOOST_CHRONO_USES_MPL_ASSERT -DBOOST_CHRONO_VERSION=2 -DBOOST_SYSTEM_DYN_LINK=1 -DBOOST_SYSTEM_NO_DEPRECATED -I".." -o "/home/tomkent/teeks99-07/f/results/boost/bin.v2/libs/chrono/test/test_7868_d.test/clang-linux-3.0/debug/test_7868.o" "../libs/chrono/test/test_7868.cpp" Link [2013-10-20 05:11:06 UTC]: succeed "clang++-3.0" -Wl,-R -Wl,"/home/tomkent/teeks99-07/f/results/boost/bin.v2/libs/chrono/build/clang-linux-3.0/debug" -Wl,-R -Wl,"/home/tomkent/teeks99-07/f/results/boost/bin.v2/libs/system/build/clang-linux-3.0/debug" -Wl,-rpath-link -Wl,"/home/tomkent/teeks99-07/f/results/boost/bin.v2/libs/chrono/build/clang-linux-3.0/debug" -Wl,-rpath-link -Wl,"/home/tomkent/teeks99-07/f/results/boost/bin.v2/libs/system/build/clang-linux-3.0/debug" -o "/home/tomkent/teeks99-07/f/results/boost/bin.v2/libs/chrono/test/test_7868_d.test/clang-linux-3.0/debug/test_7868_d" "/home/tomkent/teeks99-07/f/results/boost/bin.v2/libs/chrono/test/test_7868_d.test/clang-linux-3.0/debug/test_7868.o" "/home/tomkent/teeks99-07/f/results/boost/bin.v2/libs/chrono/build/clang-linux-3.0/debug/libboost_chrono.so.1.55.0" "/home/tomkent/teeks99-07/f/results/boost/bin.v2/libs/system/build/clang-linux-3.0/debug/libboost_system.so.1.55.0" -g -lrt -lpthread Run [2013-10-20 05:11:06 UTC]: fail A:2013-10-20 03:10:00.208598 +0000 B:2013-10-20 03:10:00.208598 +0000 ../libs/chrono/test/test_7868.cpp(33): test 'atnow.time_since_epoch().count() == atnow2.time_since_epoch().count()' failed in function 'int main()': '1382238600208597568' != '1382238600208598000' diff:0 actual:2013-10-20 03:10:00 parsed:2013-10-20 03:10:00 FORMATTED actual:2013-10-20 03:10:00 parsed:2013-10-20 03:10:00 1 error detected. EXIT STATUS: 1 </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/9274 Trac 1.4.3 viboes Sun, 20 Oct 2013 18:47:17 GMT status, milestone changed https://svn.boost.org/trac10/ticket/9274#comment:1 https://svn.boost.org/trac10/ticket/9274#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.55.0</span> </li> </ul> <p> Committed in trunk <a class="changeset" href="https://svn.boost.org/trac10/changeset/86376" title="Chrono: fix two important issues with Boost.Chrono IO v2 on windows * ...">[86376]</a> <a class="changeset" href="https://svn.boost.org/trac10/changeset/86383" title="Chrono: set precission to 9 so that there is no lost with the hisgest ...">[86383]</a> </p> Ticket viboes Sat, 26 Oct 2013 12:37:08 GMT <link>https://svn.boost.org/trac10/ticket/9274#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9274#comment:2</guid> <description> <p> Merged to release <a class="changeset" href="https://svn.boost.org/trac10/changeset/86448" title="Chrono: merge fixes for #9274, #9276.">[86448]</a><a class="changeset" href="https://svn.boost.org/trac10/changeset/86491" title="Chrono: merge timepoint io improvements.">[86491]</a><a class="changeset" href="https://svn.boost.org/trac10/changeset/86492" title="Chrono: merge timepoint io improvements.">[86492]</a>. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Sat, 26 Oct 2013 12:38:05 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/9274#comment:3 https://svn.boost.org/trac10/ticket/9274#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> Ticket