functions_mac.hpp
Go to the documentation of this file.
1 
10 /*****************************************************************************
11 ** Ifdefs
12 *****************************************************************************/
13 
14 #ifndef ECL_TIME_LITE_FUNCTIONS_MAC_HPP_
15 #define ECL_TIME_LITE_FUNCTIONS_MAC_HPP_
16 
17 /*****************************************************************************
18 ** Cross Platform Configuration
19 *****************************************************************************/
20 
21 #include <ecl/time_lite/config.hpp>
22 #include "macros.hpp"
23 
24 #if defined(ECL_HAS_MACH_TIMERS)
25 
26 /*****************************************************************************
27 ** Includes
28 *****************************************************************************/
29 
30 #include <ctime>
31 #include <sys/time.h> // gettimeofday
32 #include <ecl/config/macros.hpp>
33 #include "errors.hpp"
34 #include "types.hpp"
35 
36 /*****************************************************************************
37 ** Namespaces
38 *****************************************************************************/
39 
40 namespace ecl {
41 
42 /*****************************************************************************
43 ** Using
44 *****************************************************************************/
45 
61 ecl_time_lite_PUBLIC TimeError epoch_time(TimeStructure &time);
62 
63 
79 ecl_time_lite_PUBLIC TimeError sleep_until(const TimeStructure &time);
80 
95 ecl_time_lite_PUBLIC TimeError sleep(const TimeStructure &time);
96 
97 } // namespace ecl
98 
99 #endif
100 #endif /* ECL_TIME_LITE_FUNCTIONS_MAC_HPP_ */
#define ecl_time_lite_PUBLIC
Definition: macros.hpp:37
Cross platform definition for time types.
Macros for error-checking and program termination.


ecl_time_lite
Author(s): Daniel Stonier
autogenerated on Mon Feb 28 2022 22:16:13