11 #ifndef ASIO_STEADY_TIMER_HPP 12 #define ASIO_STEADY_TIMER_HPP 14 #if defined(_MSC_VER) && (_MSC_VER >= 1200) 16 #endif // defined(_MSC_VER) && (_MSC_VER >= 1200) 20 #if defined(ASIO_HAS_STD_CHRONO) \ 21 || defined(ASIO_HAS_BOOST_CHRONO) \ 22 || defined(GENERATING_DOCUMENTATION) 24 #if defined(ASIO_HAS_STD_CHRONO) 26 #elif defined(ASIO_HAS_BOOST_CHRONO) 27 # include <boost/chrono/system_clocks.hpp> 34 #if defined(GENERATING_DOCUMENTATION) 44 typedef basic_waitable_timer<chrono::steady_clock> steady_timer;
45 #elif defined(ASIO_HAS_STD_CHRONO) 46 # if defined(ASIO_HAS_STD_CHRONO_MONOTONIC_CLOCK) 47 typedef basic_waitable_timer<std::chrono::monotonic_clock> steady_timer;
48 # else // defined(ASIO_HAS_STD_CHRONO_MONOTONIC_CLOCK) 49 typedef basic_waitable_timer<std::chrono::steady_clock> steady_timer;
50 # endif // defined(ASIO_HAS_STD_CHRONO_MONOTONIC_CLOCK) 51 #elif defined(ASIO_HAS_BOOST_CHRONO) 52 typedef basic_waitable_timer<boost::chrono::steady_clock> steady_timer;
57 #endif // defined(ASIO_HAS_STD_CHRONO) 61 #endif // ASIO_STEADY_TIMER_HPP