// boost process_timer.cpp -----------------------------------------------------------// // Copyright Beman Dawes 1994, 2006, 2008 // Copyright 2009 Vicente J. Botet Escriba // Distributed under the Boost Software License, Version 1.0. // See http://www.boost.org/LICENSE_1_0.txt // See http://www.boost.org/libs/chrono for documentation. //--------------------------------------------------------------------------------------// #ifndef BOOST_CHRONO_DETAIL_INLINED_PROCESS_CLOCK_HPP #define BOOST_CHRONO_DETAIL_INLINED_PROCESS_CLOCK_HPP #include #include #include #include #include //----------------------------------------------------------------------------// // Windows // //----------------------------------------------------------------------------// #if defined(BOOST_CHRONO_WINDOWS_API) #include //----------------------------------------------------------------------------// // Mac // //----------------------------------------------------------------------------// #elif defined(BOOST_CHRONO_MAC_API) #include //----------------------------------------------------------------------------// // POSIX // //----------------------------------------------------------------------------// #elif defined(BOOST_CHRONO_POSIX_API) #include #endif // POSIX namespace boost { namespace chrono { void process_clock::now( time_points & tps, system::error_code & ec ) { process_times t; process_clock::now(t,ec); tps.real=process_clock::time_point(t.real); tps.user=process_clock::time_point(t.user); tps.system=process_clock::time_point(t.system); } }} #endif