Statistics
| Revision:

root / tmp / org.txm.statsengine.r.core.win32 / res / win32 / library / BH / include / boost / asio / steady_timer.hpp @ 2486

History | View | Annotate | Download (2 kB)

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