cpuwatch.hpp
Go to the documentation of this file.
1 
8 /*****************************************************************************
9 ** Ifdefs
10 *****************************************************************************/
11 
12 #ifndef ECL_TIME_CPUWATCH_HPP_
13 #define ECL_TIME_CPUWATCH_HPP_
14 
15 /*****************************************************************************
16 ** Includes
17 *****************************************************************************/
18 
19 #include <ecl/config.hpp>
20 
21 // Currently the cpuwatch timers are only defined for rt timers, so
22 // the cpuwatch class is similarly defined.
23 #if defined(ECL_IS_POSIX)
24  // monotonic clock, cpu clock -> clock_gettime; clock_selection -> clock_nanosleep
25  #if defined(_POSIX_MONOTONIC_CLOCK) && (_POSIX_MONOTONIC_CLOCK) >= 0L && defined(_POSIX_CLOCK_SELECTION) && (_POSIX_CLOCK_SELECTION) >= 0L
26  #include "cpuwatch_rt.hpp"
27  #else
28  // No fallback available
29  #endif
30 #endif
31 
32 #endif /* ECL_TIME_CPUWATCH_HPP_ */
cpuwatch_rt.hpp
This class measures cpu time for a process.
config.hpp


ecl_time
Author(s): Daniel Stonier
autogenerated on Wed Mar 2 2022 00:16:19