functions_pos.hpp
Go to the documentation of this file.
1 
11 /*****************************************************************************
12 ** Ifdefs
13 *****************************************************************************/
14 
15 #ifndef ECL_TIME_LITE_FUNCTIONS_POS_HPP_
16 #define ECL_TIME_LITE_FUNCTIONS_POS_HPP_
17 
18 /*****************************************************************************
19 ** Cross Platform Configuration
20 *****************************************************************************/
21 
22 #include <ecl/time_lite/config.hpp>
23 #include "macros.hpp"
24 
25 #if defined(ECL_HAS_POSIX_TIMERS)
26 
27 /*****************************************************************************
28 ** Includes
29 *****************************************************************************/
30 
31 #include <ctime> // time structs, nanosleep
32 #include <sys/time.h> // gettimeofday
33 #include <ecl/config/macros.hpp>
34 #include "errors.hpp"
35 #include "types_pos.hpp"
36 
37 /*****************************************************************************
38 ** Namespaces
39 *****************************************************************************/
40 
41 namespace ecl {
42 
43 /*****************************************************************************
44 ** Implementations
45 *****************************************************************************/
64 ecl_time_lite_PUBLIC TimeError epoch_time(TimeStructure &time);
65 
83 ecl_time_lite_PUBLIC TimeError sleep_until(const TimeStructure &time);
84 
101 ecl_time_lite_PUBLIC TimeError sleep(const TimeStructure &time);
102 
103 } // namespace ecl
104 
105 #endif
106 #endif /* ECL_TIME_LITE_FUNCTIONS_POS_HPP_ */
ecl_time_lite_PUBLIC
#define ecl_time_lite_PUBLIC
Definition: macros.hpp:37
macros.hpp
Macros for error-checking and program termination.
types_pos.hpp
Posix definition for time types.
macros.hpp
ecl


ecl_time_lite
Author(s): Daniel Stonier
autogenerated on Wed Mar 2 2022 00:13:57