Modify

Ticket #9274 (closed Bugs: fixed)

Opened 6 months ago

Last modified 6 months ago

lost of precission on system_clock input

Reported by: viboes Owned by: viboes
Milestone: Boost 1.55.0 Component: chrono
Version: Boost 1.54.0 Severity: Problem
Keywords: Cc:

Description

On platforms having a higher precision than microseconds, there is a lost of precision on system_clock input.

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
            


Attachments

Change History

comment:1 Changed 6 months ago by viboes

  • Status changed from new to assigned
  • Milestone changed from To Be Determined to Boost 1.55.0

Committed in trunk [86376] [86383]

Last edited 6 months ago by viboes (previous) (diff)

comment:2 Changed 6 months ago by viboes

Merged to release [86448][86491][86492].

Last edited 6 months ago by viboes (previous) (diff)

comment:3 Changed 6 months ago by viboes

  • Status changed from assigned to closed
  • Resolution set to fixed
View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.