]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/boost/asio/detail/chrono.hpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / boost / asio / detail / chrono.hpp
CommitLineData
b32b8144
FG
1//
2// detail/chrono.hpp
3// ~~~~~~~~~~~~~~~~~
4//
1e59de90 5// Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com)
b32b8144
FG
6//
7// Distributed under the Boost Software License, Version 1.0. (See accompanying
8// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
9//
10
11#ifndef BOOST_ASIO_DETAIL_CHRONO_HPP
12#define BOOST_ASIO_DETAIL_CHRONO_HPP
13
14#if defined(_MSC_VER) && (_MSC_VER >= 1200)
15# pragma once
16#endif // defined(_MSC_VER) && (_MSC_VER >= 1200)
17
18#include <boost/asio/detail/config.hpp>
19
20#if defined(BOOST_ASIO_HAS_STD_CHRONO)
21# include <chrono>
22#elif defined(BOOST_ASIO_HAS_BOOST_CHRONO)
23# include <boost/chrono/system_clocks.hpp>
24#endif // defined(BOOST_ASIO_HAS_BOOST_CHRONO)
25
26namespace boost {
27namespace asio {
28namespace chrono {
29
30#if defined(BOOST_ASIO_HAS_STD_CHRONO)
31using std::chrono::duration;
32using std::chrono::time_point;
33using std::chrono::duration_cast;
34using std::chrono::nanoseconds;
35using std::chrono::microseconds;
36using std::chrono::milliseconds;
37using std::chrono::seconds;
38using std::chrono::minutes;
39using std::chrono::hours;
40using std::chrono::time_point_cast;
41#if defined(BOOST_ASIO_HAS_STD_CHRONO_MONOTONIC_CLOCK)
42typedef std::chrono::monotonic_clock steady_clock;
43#else // defined(BOOST_ASIO_HAS_STD_CHRONO_MONOTONIC_CLOCK)
44using std::chrono::steady_clock;
45#endif // defined(BOOST_ASIO_HAS_STD_CHRONO_MONOTONIC_CLOCK)
46using std::chrono::system_clock;
47using std::chrono::high_resolution_clock;
48#elif defined(BOOST_ASIO_HAS_BOOST_CHRONO)
49using boost::chrono::duration;
50using boost::chrono::time_point;
51using boost::chrono::duration_cast;
52using boost::chrono::nanoseconds;
53using boost::chrono::microseconds;
54using boost::chrono::milliseconds;
55using boost::chrono::seconds;
56using boost::chrono::minutes;
57using boost::chrono::hours;
58using boost::chrono::time_point_cast;
59using boost::chrono::system_clock;
60using boost::chrono::steady_clock;
61using boost::chrono::high_resolution_clock;
62#endif // defined(BOOST_ASIO_HAS_BOOST_CHRONO)
63
64} // namespace chrono
65} // namespace asio
66} // namespace boost
67
68#endif // BOOST_ASIO_DETAIL_CHRONO_HPP