Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:28:37

0001 //
0002 // detail/chrono.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_DETAIL_CHRONO_HPP
0012 #define BOOST_ASIO_DETAIL_CHRONO_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 <chrono>
0020 
0021 namespace boost {
0022 namespace asio {
0023 namespace chrono {
0024 
0025 using std::chrono::duration;
0026 using std::chrono::time_point;
0027 using std::chrono::duration_cast;
0028 using std::chrono::nanoseconds;
0029 using std::chrono::microseconds;
0030 using std::chrono::milliseconds;
0031 using std::chrono::seconds;
0032 using std::chrono::minutes;
0033 using std::chrono::hours;
0034 using std::chrono::time_point_cast;
0035 #if defined(BOOST_ASIO_HAS_STD_CHRONO_MONOTONIC_CLOCK)
0036 typedef std::chrono::monotonic_clock steady_clock;
0037 #else // defined(BOOST_ASIO_HAS_STD_CHRONO_MONOTONIC_CLOCK)
0038 using std::chrono::steady_clock;
0039 #endif // defined(BOOST_ASIO_HAS_STD_CHRONO_MONOTONIC_CLOCK)
0040 using std::chrono::system_clock;
0041 using std::chrono::high_resolution_clock;
0042 
0043 } // namespace chrono
0044 } // namespace asio
0045 } // namespace boost
0046 
0047 #endif // BOOST_ASIO_DETAIL_CHRONO_HPP