// stopclock_perf.cpp ---------------------------------------------------// // Copyright 2009 Vicente J. Botet Escriba // Copyright 2009 Howard Hinnant // 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_CLOCK_NAME_HPP #define BOOST_CHRONO_CLOCK_NAME_HPP #include #include template ::value, #ifdef BOOST_CHRONO_HAS_CLOCK_STEADY bool = boost::is_same::value, #else bool = false, #endif bool = boost::is_same::value > struct name; template struct name { static const char* apply() { return "unknown clock";} }; template struct name { static const char* apply() { return "system_clock";} }; template struct name { static const char* apply() { return "steady_clock";} }; template struct name { static const char* apply() { return "high_resolution_clock";} }; template struct name { static const char* apply() { return "steady_clock and high_resolution_clock";} }; template struct name { static const char* apply() { return "system_clock and high_resolution_clock";} }; template struct name { static const char* apply() { return "system_clock and steady_clock";} }; template struct name { static const char* apply() { return "system_clock, steady_clock and high_resolution_clock";} }; #endif