Boost.Chrono: Version 0.2.0, Features + Bug fixes + Updated documentation
Features:
Added ratio construction and assignment from an equivalent ratio.
Added nested ratio typedef type.
Added BOOST_CHRONO_HAS_CLOCK_MONOTONIC macro to state if monotonic_clock is provided on this platform.
Added duration operator%
Added BOOST_CONSTEXPR when constexpr should be used
Complete duration operator* and operator/
Implementation:
Separate chrono.cpp on # files win/chrono.cpp, mac/chrono.cpp and posix/chrono.cpp to make easier the maintenance on different platforms.
Separate process_clock.cpp on # files win/process_clock.cpp, mac/process_clock.cpp and posix/process_clock.cpp to make easier the maintenance on different platforms.
Added the error_code prototype for monotonic_clock::now for mac/chrono.cpp
Fully implement mac/chrono.cpp with error handling.
Take care on POSIX systems when CLOCK_MONOTONIC is not defined.
Documentation:
The documentation is written now using quick-book using as base N2661 - A Foundation to Sleep On .
Bugs
operator/ was ambiguous: Disambiguate duration operator/
CLOCK_MONOTONIC is not defined with cygwin/gcc 3.4: Disable code when BOOST_CHRONO_HAS_CLOCK_MONOTONIC is not defined.
result of ratio_add and ratio_add were not normalized ratios: Use of the nested ratio typedef type on ratio arithmetic operations.
Copy constructor from similar duration masked the defaulted operations: Added duration defaulted implementations
(No files)
Note:
See TracChangeset
for help on using the changeset viewer.