annotate DEPENDENCIES/generic/include/boost/asio/system_timer.hpp @ 125:34e428693f5d vext

Vext -> Repoint
author Chris Cannam
date Thu, 14 Jun 2018 11:15:39 +0100
parents c530137014c0
children
rev   line source
Chris@16 1 //
Chris@16 2 // system_timer.hpp
Chris@16 3 // ~~~~~~~~~~~~~~~~
Chris@16 4 //
Chris@101 5 // Copyright (c) 2003-2015 Christopher M. Kohlhoff (chris at kohlhoff dot com)
Chris@16 6 //
Chris@16 7 // Distributed under the Boost Software License, Version 1.0. (See accompanying
Chris@16 8 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
Chris@16 9 //
Chris@16 10
Chris@16 11 #ifndef BOOST_ASIO_SYSTEM_TIMER_HPP
Chris@16 12 #define BOOST_ASIO_SYSTEM_TIMER_HPP
Chris@16 13
Chris@16 14 #if defined(_MSC_VER) && (_MSC_VER >= 1200)
Chris@16 15 # pragma once
Chris@16 16 #endif // defined(_MSC_VER) && (_MSC_VER >= 1200)
Chris@16 17
Chris@16 18 #include <boost/asio/detail/config.hpp>
Chris@16 19
Chris@16 20 #if defined(BOOST_ASIO_HAS_STD_CHRONO) \
Chris@16 21 || defined(BOOST_ASIO_HAS_BOOST_CHRONO) \
Chris@16 22 || defined(GENERATING_DOCUMENTATION)
Chris@16 23
Chris@16 24 #if defined(BOOST_ASIO_HAS_STD_CHRONO)
Chris@16 25 # include <chrono>
Chris@16 26 #elif defined(BOOST_ASIO_HAS_BOOST_CHRONO)
Chris@16 27 # include <boost/chrono/system_clocks.hpp>
Chris@16 28 #endif
Chris@16 29
Chris@16 30 #include <boost/asio/basic_waitable_timer.hpp>
Chris@16 31
Chris@16 32 namespace boost {
Chris@16 33 namespace asio {
Chris@16 34
Chris@16 35 #if defined(GENERATING_DOCUMENTATION)
Chris@16 36 /// Typedef for a timer based on the system clock.
Chris@16 37 /**
Chris@16 38 * This typedef uses the C++11 @c &lt;chrono&gt; standard library facility, if
Chris@16 39 * available. Otherwise, it may use the Boost.Chrono library. To explicitly
Chris@16 40 * utilise Boost.Chrono, use the basic_waitable_timer template directly:
Chris@16 41 * @code
Chris@16 42 * typedef basic_waitable_timer<boost::chrono::system_clock> timer;
Chris@16 43 * @endcode
Chris@16 44 */
Chris@16 45 typedef basic_waitable_timer<chrono::system_clock> system_timer;
Chris@16 46 #elif defined(BOOST_ASIO_HAS_STD_CHRONO)
Chris@16 47 typedef basic_waitable_timer<std::chrono::system_clock> system_timer;
Chris@16 48 #elif defined(BOOST_ASIO_HAS_BOOST_CHRONO)
Chris@16 49 typedef basic_waitable_timer<boost::chrono::system_clock> system_timer;
Chris@16 50 #endif
Chris@16 51
Chris@16 52 } // namespace asio
Chris@16 53 } // namespace boost
Chris@16 54
Chris@16 55 #endif // defined(BOOST_ASIO_HAS_STD_CHRONO)
Chris@16 56 // || defined(BOOST_ASIO_HAS_BOOST_CHRONO)
Chris@16 57 // || defined(GENERATING_DOCUMENTATION)
Chris@16 58
Chris@16 59 #endif // BOOST_ASIO_SYSTEM_TIMER_HPP