time.h header reference
[C library module]

The source code of this header can be browsed online.

Description [link] 

Time-related function stubs

Members [link] 

Types [link] 

Functions [link] 

  • 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 [link] 

#define CLOCK_REALTIME [link] 

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

#define TIME_H_ [link] 

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

error_t clock_getres(clockid_t clk_id, struct timespec *res) [link] 

This function is declared in time.h source file, line 76.

This is available when CONFIG_LIBC_TIME is defined.

error_t clock_gettime(clockid_t clk_id, struct timespec *tp) [link] 

This function is declared in time.h source file, line 80.

This is available when CONFIG_LIBC_TIME is defined.

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

This function is declared in time.h source file, line 84.

This is available when CONFIG_LIBC_TIME is defined.

enum clockid_e [link] 

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

IdentifierDescription
CLOCK_REALTIME

See also clockid_t.

typedef enum clockid_e clockid_t [link] 

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

error_t gettimeofday(struct timeval *tv, struct timezone *tz) [link] 

This function is declared in time.h source file, line 56.

This is available when CONFIG_LIBC_TIME is defined.

error_t nanosleep(const struct timespec *rqtp, struct timespec *rmtp) [link] 

This function is declared in time.h source file, line 88.

This is available when CONFIG_LIBC_TIME is defined.

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

This function is declared in time.h source file, line 60.

This is available when CONFIG_LIBC_TIME is defined.

time_t time(time_t *t) [link] 

This function is declared in time.h source file, line 64.

This is available when CONFIG_LIBC_TIME is defined.

struct timespec [link] 

This struct is declared in pthread.h source file, line 480.

Preprocessor condition: defined( CONFIG_PTHREAD )

FieldDescription
time_t tv_sec;
time_nsec_t tv_nsec;

struct timezone [link] 

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) [link] 

This function is declared in time.h source file, line 98.

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) [link] 

This function is declared in time.h source file, line 104.

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 ) [link] 

This function is declared in time.h source file, line 93.

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 Thu Aug 4 15:44:06 2022 using MkDoc