Program Listing for File functions_pos.hpp
↰ Return to documentation for file (/tmp/ws/src/ecl_lite/ecl_time_lite/include/ecl/time_lite/functions_pos.hpp
)
/*****************************************************************************
** Ifdefs
*****************************************************************************/
#ifndef ECL_TIME_LITE_FUNCTIONS_POS_HPP_
#define ECL_TIME_LITE_FUNCTIONS_POS_HPP_
/*****************************************************************************
** Cross Platform Configuration
*****************************************************************************/
#include <ecl/time_lite/config.hpp>
#include "macros.hpp"
#if defined(ECL_HAS_POSIX_TIMERS)
/*****************************************************************************
** Includes
*****************************************************************************/
#include <ctime> // time structs, nanosleep
#include <sys/time.h> // gettimeofday
#include <ecl/config/macros.hpp>
#include "errors.hpp"
#include "types_pos.hpp"
/*****************************************************************************
** Namespaces
*****************************************************************************/
namespace ecl {
/*****************************************************************************
** Implementations
*****************************************************************************/
ecl_time_lite_PUBLIC TimeError epoch_time(TimeStructure &time);
ecl_time_lite_PUBLIC TimeError sleep_until(const TimeStructure &time);
ecl_time_lite_PUBLIC TimeError sleep(const TimeStructure &time);
} // namespace ecl
#endif
#endif /* ECL_TIME_LITE_FUNCTIONS_POS_HPP_ */