Realistic 3D camera system
3D camera system components
wait_traits.hpp
Go to the documentation of this file.
1 //
2 // wait_traits.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_WAIT_TRAITS_HPP
12 #define ASIO_WAIT_TRAITS_HPP
13 
14 #if defined(_MSC_VER) && (_MSC_VER >= 1200)
15 # pragma once
16 #endif // defined(_MSC_VER) && (_MSC_VER >= 1200)
17 
19 
20 namespace asio {
21 
23 template <typename Clock>
25 {
27 
30  static typename Clock::duration to_wait_duration(
31  const typename Clock::duration& d)
32  {
33  return d;
34  }
35 };
36 
37 } // namespace asio
38 
40 
41 #endif // ASIO_WAIT_TRAITS_HPP
Wait traits suitable for use with the basic_waitable_timer class template.
Definition: wait_traits.hpp:24
static Clock::duration to_wait_duration(const typename Clock::duration &d)
Convert a clock duration into a duration used for waiting.
Definition: wait_traits.hpp:30