.. _program_listing_file__tmp_ws_src_ecl_core_ecl_time_include_ecl_time_cpuwatch.hpp: Program Listing for File cpuwatch.hpp ===================================== |exhale_lsh| :ref:`Return to documentation for file ` (``/tmp/ws/src/ecl_core/ecl_time/include/ecl/time/cpuwatch.hpp``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp /***************************************************************************** ** Ifdefs *****************************************************************************/ #ifndef ECL_TIME_CPUWATCH_HPP_ #define ECL_TIME_CPUWATCH_HPP_ /***************************************************************************** ** Includes *****************************************************************************/ #include // Currently the cpuwatch timers are only defined for rt timers, so // the cpuwatch class is similarly defined. #if defined(ECL_IS_POSIX) // monotonic clock, cpu clock -> clock_gettime; clock_selection -> clock_nanosleep #if defined(_POSIX_MONOTONIC_CLOCK) && (_POSIX_MONOTONIC_CLOCK) >= 0L && defined(_POSIX_CLOCK_SELECTION) && (_POSIX_CLOCK_SELECTION) >= 0L #include "cpuwatch_rt.hpp" #else // No fallback available #endif #endif #endif /* ECL_TIME_CPUWATCH_HPP_ */