time.h header reference
[C library module]

The source code of this header can be browsed online.

Description  

Time-related function stubs

Members  

Types  

Functions  

  • error_t clock_getres(clockid_t clk_id, struct timespec *res)
  • error_t clock_gettime(clockid_t clk_id, struct timespec *tp)
  • error_t clock_settime(clockid_t clk_id, const struct timespec *tp)
  • error_t gettimeofday(struct timeval *tv, struct timezone *tz)
  • error_t nanosleep(const struct timespec *rqtp, struct timespec *rmtp)
  • error_t settimeofday(const struct timeval *tv, const struct timezone *tz)
  • time_t time(time_t *t)
  • error_t libc_time_to_timer(const struct timespec *delay, dev_timer_value_t *value)
  • error_t libc_time_to_timer_rq(const struct timespec *delay, struct dev_timer_rq_s *rgq)
  • struct device_timer_s * libc_timer(void )

Members detail  

#define CLOCK_REALTIME  

This macro is declared in time.h source file, line 68.

#define TIME_H_  

This macro is declared in time.h source file, line 23.

error_t clock_getres(clockid_t clk_id, struct timespec *res)  

This is available when CONFIG_LIBC_TIME is defined.

error_t clock_gettime(clockid_t clk_id, struct timespec *tp)  

This is available when CONFIG_LIBC_TIME is defined.

error_t clock_settime(clockid_t clk_id, const struct timespec *tp)  

This is available when CONFIG_LIBC_TIME is defined.

enum clockid_e  

This enum is declared in time.h source file, line 67.

IdentifierDescription
CLOCK_REALTIME

See also clockid_t.

typedef enum clockid_e clockid_t  

This typedef is declared in time.h source file, line 72.

error_t gettimeofday(struct timeval *tv, struct timezone *tz)  

This is available when CONFIG_LIBC_TIME is defined.

error_t nanosleep(const struct timespec *rqtp, struct timespec *rmtp)  

This is available when CONFIG_LIBC_TIME is defined.

error_t settimeofday(const struct timeval *tv, const struct timezone *tz)  

This is available when CONFIG_LIBC_TIME is defined.

This is available when CONFIG_LIBC_TIME is defined.

struct timespec  

This struct is declared in time.h source file, line 43.

FieldDescription
time_t tv_sec;
time_nsec_t tv_nsec;

struct timezone  

This struct is declared in time.h source file, line 49.

FieldDescription
int_fast8_t tz_minuteswest;
int_fast8_t tz_dsttime;

error_t libc_time_to_timer(const struct timespec *delay, dev_timer_value_t *value)  

This function converts between libc time and libc timer value.

This is available when CONFIG_LIBC_TIME is defined.

This function is for internal use only.

error_t libc_time_to_timer_rq(const struct timespec *delay, struct dev_timer_rq_s *rgq)  

This function intializes the delay, deadline and rev fields of a timer request.

This is available when CONFIG_LIBC_TIME is defined.

This function is for internal use only.

See also libc_time_to_timer.

struct device_timer_s * libc_timer(void )  

This function returns a pointer to libc timer.

This is available when CONFIG_LIBC_TIME is defined.

This function is for internal use only.

Valid XHTML 1.0 StrictGenerated by diaxen on Wed Oct 17 21:18:39 2018 using MkDoc