Ticket #4727: boost_thread_time.patch

File boost_thread_time.patch, 872 bytes (added by nstewart@…, 12 years ago)

Diff w.r.t 65916 (Oct 11th 2010)

  • thread_time.hpp

     
    66//  accompanying file LICENSE_1_0.txt or copy at
    77//  http://www.boost.org/LICENSE_1_0.txt)
    88
     9#include <boost/date_time/time_clock.hpp>
    910#include <boost/date_time/microsec_time_clock.hpp>
    1011#include <boost/date_time/posix_time/posix_time_types.hpp>
    1112
     
    1718   
    1819    inline system_time get_system_time()
    1920    {
     21#if defined(BOOST_DATE_TIME_HAS_HIGH_PRECISION_CLOCK)
    2022        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)
    2126    }
    2227
    2328    namespace detail