RTEMS: cpukit/include/rtems/timespec.h File Reference

| RTEMS 5.4-rc2

Loading...
Searching...
No Matches
Functions
timespec.h File Reference

Timespec API. More...

`#include <rtems/score/timespec.h>`

Go to the source code of this file.

## Functions
RTEMS_INLINE_ROUTINE bool | rtems_timespec_is_valid (const struct timespec *time)
| Is timespec valid.
RTEMS_INLINE_ROUTINE bool | rtems_timespec_less_than (const struct timespec *lhs, const struct timespec *rhs)
| Timespec less than operator.
RTEMS_INLINE_ROUTINE uint32_t | rtems_timespec_add_to (struct timespec *time, const struct timespec *add)
| Add to a timespec.
RTEMS_INLINE_ROUTINE uint32_t | rtems_timespec_to_ticks (const struct timespec *time)
| Convert timespec to number of ticks.
RTEMS_INLINE_ROUTINE void | rtems_timespec_from_ticks (uint32_t ticks, struct timespec *time)
| Convert ticks to timespec.
RTEMS_INLINE_ROUTINE void | rtems_timespec_subtract (const struct timespec *start, const struct timespec *end, struct timespec *result)
| Subtract two timespec.
RTEMS_INLINE_ROUTINE void | rtems_timespec_divide_by_integer (const struct timespec *time, uint32_t iterations, struct timespec *result)
| Divide timespec by integer.
RTEMS_INLINE_ROUTINE void | rtems_timespec_divide (const struct timespec *lhs, const struct timespec *rhs, uint32_t *ival_percentage, uint32_t *fval_percentage)
| Divide timespec.
RTEMS_INLINE_ROUTINE void | rtems_timespec_set (struct timespec *_time, time_t _seconds, uint32_t _nanoseconds)
| Set timespec to seconds nanosecond.
RTEMS_INLINE_ROUTINE void | rtems_timespec_zero (struct timespec *_time)
| Zero timespec.
RTEMS_INLINE_ROUTINE time_t | rtems_timespec_get_seconds (struct timespec *_time)
| Get seconds portion of timespec.
RTEMS_INLINE_ROUTINE uint32_t | rtems_timespec_get_nanoseconds (struct timespec *_time)
| Get nanoseconds portion of timespec.
RTEMS_INLINE_ROUTINE bool | rtems_timespec_greater_than (const struct timespec *_lhs, const struct timespec *_rhs)
| Timespec greater than operator.
RTEMS_INLINE_ROUTINE bool | rtems_timespec_equal_to (const struct timespec *lhs, const struct timespec *rhs)
| Timespec equal to Operator.

## Detailed Description

Timespec API.

This include file contains API for manipulating timespecs.