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