Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:29:12

0001 //
0002 // system_timer.hpp
0003 // ~~~~~~~~~~~~~~~~
0004 //
0005 // Copyright (c) 2003-2023 Christopher M. Kohlhoff (chris at kohlhoff dot com)
0006 //
0007 // Distributed under the Boost Software License, Version 1.0. (See accompanying
0008 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0009 //
0010 
0011 #ifndef BOOST_ASIO_SYSTEM_TIMER_HPP
0012 #define BOOST_ASIO_SYSTEM_TIMER_HPP
0013 
0014 #if defined(_MSC_VER) && (_MSC_VER >= 1200)
0015 # pragma once
0016 #endif // defined(_MSC_VER) && (_MSC_VER >= 1200)
0017 
0018 #include <boost/asio/detail/config.hpp>
0019 #include <boost/asio/basic_waitable_timer.hpp>
0020 #include <boost/asio/detail/chrono.hpp>
0021 
0022 namespace boost {
0023 namespace asio {
0024 
0025 /// Typedef for a timer based on the system clock.
0026 /**
0027  * This typedef uses the C++11 @c &lt;chrono&gt; standard library facility, if
0028  * available. Otherwise, it may use the Boost.Chrono library. To explicitly
0029  * utilise Boost.Chrono, use the basic_waitable_timer template directly:
0030  * @code
0031  * typedef basic_waitable_timer<boost::chrono::system_clock> timer;
0032  * @endcode
0033  */
0034 typedef basic_waitable_timer<chrono::system_clock> system_timer;
0035 
0036 } // namespace asio
0037 } // namespace boost
0038 
0039 #endif // BOOST_ASIO_SYSTEM_TIMER_HPP