cpuwatch.hpp
Go to the documentation of this file.
00001 
00008 /*****************************************************************************
00009 ** Ifdefs
00010 *****************************************************************************/
00011 
00012 #ifndef ECL_TIME_CPUWATCH_HPP_
00013 #define ECL_TIME_CPUWATCH_HPP_
00014 
00015 /*****************************************************************************
00016 ** Includes
00017 *****************************************************************************/
00018 
00019 #include <ecl/config.hpp>
00020 
00021 // Currently the cpuwatch timers are only defined for rt timers, so
00022 // the cpuwatch class is similarly defined.
00023 #if defined(ECL_IS_POSIX)
00024   // monotonic clock, cpu clock -> clock_gettime; clock_selection -> clock_nanosleep
00025   #if defined(_POSIX_MONOTONIC_CLOCK) && (_POSIX_MONOTONIC_CLOCK) >= 0L && defined(_POSIX_CLOCK_SELECTION) && (_POSIX_CLOCK_SELECTION) >= 0L
00026     #include "cpuwatch_rt.hpp"
00027   #else
00028     // No fallback available
00029   #endif
00030 #endif
00031 
00032 #endif /* ECL_TIME_CPUWATCH_HPP_ */


ecl_time
Author(s): Daniel Stonier
autogenerated on Thu Jun 6 2019 21:17:28