File indexing completed on 2025-01-18 09:28:37
0001
0002
0003
0004
0005
0006
0007
0008
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
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
0038 using std::chrono::steady_clock;
0039 #endif
0040 using std::chrono::system_clock;
0041 using std::chrono::high_resolution_clock;
0042
0043 }
0044 }
0045 }
0046
0047 #endif