Realistic 3D camera system
3D camera system components
high_resolution_timer.hpp
Go to the documentation of this file.
1 //
2 // high_resolution_timer.hpp
3 // ~~~~~~~~~~~~~~~~~~~~~~~~~
4 //
5 // Copyright (c) 2003-2015 Christopher M. Kohlhoff (chris at kohlhoff dot com)
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 ASIO_HIGH_RESOLUTION_TIMER_HPP
12 #define ASIO_HIGH_RESOLUTION_TIMER_HPP
13 
14 #if defined(_MSC_VER) && (_MSC_VER >= 1200)
15 # pragma once
16 #endif // defined(_MSC_VER) && (_MSC_VER >= 1200)
17 
18 #include "asio/detail/config.hpp"
19 
20 #if defined(ASIO_HAS_STD_CHRONO) \
21  || defined(ASIO_HAS_BOOST_CHRONO) \
22  || defined(GENERATING_DOCUMENTATION)
23 
24 #if defined(ASIO_HAS_STD_CHRONO)
25 # include <chrono>
26 #elif defined(ASIO_HAS_BOOST_CHRONO)
27 # include <boost/chrono/system_clocks.hpp>
28 #endif
29 
31 
32 namespace asio {
33 
34 #if defined(GENERATING_DOCUMENTATION)
35 
44 typedef basic_waitable_timer<
45  chrono::high_resolution_clock>
46  high_resolution_timer;
47 #elif defined(ASIO_HAS_STD_CHRONO)
48 typedef basic_waitable_timer<
49  std::chrono::high_resolution_clock>
50  high_resolution_timer;
51 #elif defined(ASIO_HAS_BOOST_CHRONO)
52 typedef basic_waitable_timer<
53  boost::chrono::high_resolution_clock>
54  high_resolution_timer;
55 #endif
56 
57 } // namespace asio
58 
59 #endif // defined(ASIO_HAS_STD_CHRONO)
60  // || defined(ASIO_HAS_BOOST_CHRONO)
61  // || defined(GENERATING_DOCUMENTATION)
62 
63 #endif // ASIO_HIGH_RESOLUTION_TIMER_HPP