Ticket #4727: boost_thread_time.patch
File boost_thread_time.patch, 872 bytes (added by , 12 years ago) |
---|
-
thread_time.hpp
6 6 // accompanying file LICENSE_1_0.txt or copy at 7 7 // http://www.boost.org/LICENSE_1_0.txt) 8 8 9 #include <boost/date_time/time_clock.hpp> 9 10 #include <boost/date_time/microsec_time_clock.hpp> 10 11 #include <boost/date_time/posix_time/posix_time_types.hpp> 11 12 … … 17 18 18 19 inline system_time get_system_time() 19 20 { 21 #if defined(BOOST_DATE_TIME_HAS_HIGH_PRECISION_CLOCK) 20 22 return boost::date_time::microsec_clock<system_time>::universal_time(); 23 #else // defined(BOOST_DATE_TIME_HAS_HIGH_PRECISION_CLOCK) 24 return boost::date_time::second_clock<system_time>::universal_time(); 25 #endif // defined(BOOST_DATE_TIME_HAS_HIGH_PRECISION_CLOCK) 21 26 } 22 27 23 28 namespace detail