chrono.hpp 2.0 KB

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