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]
#define TIME_H_ [link]
This function is declared in time.h source file, line 76.
This is available when CONFIG_LIBC_TIME is defined.
This function is declared in time.h source file, line 80.
This is available when CONFIG_LIBC_TIME is defined.
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.
Identifier | Description |
---|---|
CLOCK_REALTIME |
See also clockid_t.
This function is declared in time.h source file, line 56.
This is available when CONFIG_LIBC_TIME is defined.
This function is declared in time.h source file, line 88.
This is available when CONFIG_LIBC_TIME is defined.
This function is declared in time.h source file, line 60.
This is available when CONFIG_LIBC_TIME is defined.
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 )
Field | Description |
---|---|
time_t tv_sec; | |
time_nsec_t tv_nsec; |
struct timezone [link]
This struct is declared in time.h source file, line 49.
Field | Description |
---|---|
int_fast8_t tz_minuteswest; | |
int_fast8_t tz_dsttime; |
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.