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_ */
This class measures cpu time for a process.


ecl_time
Author(s): Daniel Stonier
autogenerated on Mon Jun 10 2019 13:08:15