thread_clock.hpp 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. #include <boost/system/system_error.hpp>
  15. #include <boost/throw_exception.hpp>
  16. #include <boost/chrono/detail/system.hpp>
  17. //----------------------------------------------------------------------------//
  18. // Windows //
  19. //----------------------------------------------------------------------------//
  20. #if defined(BOOST_CHRONO_WINDOWS_API)
  21. #include <boost/chrono/detail/inlined/win/thread_clock.hpp>
  22. //----------------------------------------------------------------------------//
  23. // Mac //
  24. //----------------------------------------------------------------------------//
  25. #elif defined(BOOST_CHRONO_MAC_API)
  26. #include <boost/chrono/detail/inlined/mac/thread_clock.hpp>
  27. //----------------------------------------------------------------------------//
  28. // POSIX //
  29. //----------------------------------------------------------------------------//
  30. #elif defined(BOOST_CHRONO_POSIX_API)
  31. #include <boost/chrono/detail/inlined/posix/thread_clock.hpp>
  32. #endif // POSIX
  33. #endif
  34. #endif