Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
include
ecl
time
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_ */
xbot_driver
Author(s): Roc, wangpeng@droid.ac.cn
autogenerated on Sat Oct 10 2020 03:27:37