Chris@16: // Chris@16: // system_timer.hpp Chris@16: // ~~~~~~~~~~~~~~~~ Chris@16: // Chris@101: // Copyright (c) 2003-2015 Christopher M. Kohlhoff (chris at kohlhoff dot com) Chris@16: // Chris@16: // Distributed under the Boost Software License, Version 1.0. (See accompanying Chris@16: // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) Chris@16: // Chris@16: Chris@16: #ifndef BOOST_ASIO_SYSTEM_TIMER_HPP Chris@16: #define BOOST_ASIO_SYSTEM_TIMER_HPP Chris@16: Chris@16: #if defined(_MSC_VER) && (_MSC_VER >= 1200) Chris@16: # pragma once Chris@16: #endif // defined(_MSC_VER) && (_MSC_VER >= 1200) Chris@16: Chris@16: #include Chris@16: Chris@16: #if defined(BOOST_ASIO_HAS_STD_CHRONO) \ Chris@16: || defined(BOOST_ASIO_HAS_BOOST_CHRONO) \ Chris@16: || defined(GENERATING_DOCUMENTATION) Chris@16: Chris@16: #if defined(BOOST_ASIO_HAS_STD_CHRONO) Chris@16: # include Chris@16: #elif defined(BOOST_ASIO_HAS_BOOST_CHRONO) Chris@16: # include Chris@16: #endif Chris@16: Chris@16: #include Chris@16: Chris@16: namespace boost { Chris@16: namespace asio { Chris@16: Chris@16: #if defined(GENERATING_DOCUMENTATION) Chris@16: /// Typedef for a timer based on the system clock. Chris@16: /** Chris@16: * This typedef uses the C++11 @c <chrono> standard library facility, if Chris@16: * available. Otherwise, it may use the Boost.Chrono library. To explicitly Chris@16: * utilise Boost.Chrono, use the basic_waitable_timer template directly: Chris@16: * @code Chris@16: * typedef basic_waitable_timer timer; Chris@16: * @endcode Chris@16: */ Chris@16: typedef basic_waitable_timer system_timer; Chris@16: #elif defined(BOOST_ASIO_HAS_STD_CHRONO) Chris@16: typedef basic_waitable_timer system_timer; Chris@16: #elif defined(BOOST_ASIO_HAS_BOOST_CHRONO) Chris@16: typedef basic_waitable_timer system_timer; Chris@16: #endif Chris@16: Chris@16: } // namespace asio Chris@16: } // namespace boost Chris@16: Chris@16: #endif // defined(BOOST_ASIO_HAS_STD_CHRONO) Chris@16: // || defined(BOOST_ASIO_HAS_BOOST_CHRONO) Chris@16: // || defined(GENERATING_DOCUMENTATION) Chris@16: Chris@16: #endif // BOOST_ASIO_SYSTEM_TIMER_HPP