thread_clock.hpp 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. // boost thread_clock.cpp -----------------------------------------------------------//
  2. // Copyright 2010 Vicente J. Botet Escriba
  3. // Distributed under the Boost Software License, Version 1.0.
  4. // See http://www.boost.org/LICENSE_1_0.txt
  5. // See http://www.boost.org/libs/chrono for documentation.
  6. //--------------------------------------------------------------------------------------//
  7. #ifndef BOOST_CHRONO_DETAIL_INLINED_THREAD_CLOCK_HPP
  8. #define BOOST_CHRONO_DETAIL_INLINED_THREAD_CLOCK_HPP
  9. #include <boost/chrono/config.hpp>
  10. #include <boost/version.hpp>
  11. #if defined(BOOST_CHRONO_HAS_THREAD_CLOCK)
  12. #include <boost/chrono/thread_clock.hpp>
  13. #include <boost/throw_exception.hpp>
  14. #if defined BOOST_CHRONO_PROVIDE_HYBRID_ERROR_HANDLING
  15. #include <boost/system/system_error.hpp>
  16. #endif
  17. #include <boost/throw_exception.hpp>
  18. #include <boost/chrono/detail/system.hpp>
  19. //----------------------------------------------------------------------------//
  20. // Windows //
  21. //----------------------------------------------------------------------------//
  22. #if defined(BOOST_CHRONO_WINDOWS_API)
  23. #include <boost/chrono/detail/inlined/win/thread_clock.hpp>
  24. //----------------------------------------------------------------------------//
  25. // Mac //
  26. //----------------------------------------------------------------------------//
  27. #elif defined(BOOST_CHRONO_MAC_API)
  28. #include <boost/chrono/detail/inlined/mac/thread_clock.hpp>
  29. //----------------------------------------------------------------------------//
  30. // POSIX //
  31. //----------------------------------------------------------------------------//
  32. #elif defined(BOOST_CHRONO_POSIX_API)
  33. #include <boost/chrono/detail/inlined/posix/thread_clock.hpp>
  34. #endif // POSIX
  35. #endif
  36. #endif