RTEMS  5.0.0
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. More...
 
RTEMS_INLINE_ROUTINE bool rtems_timespec_less_than (const struct timespec *lhs, const struct timespec *rhs)
 Timespec less than operator. More...
 
RTEMS_INLINE_ROUTINE uint32_t rtems_timespec_add_to (struct timespec *time, const struct timespec *add)
 Add to a timespec. More...
 
RTEMS_INLINE_ROUTINE uint32_t rtems_timespec_to_ticks (const struct timespec *time)
 Convert timespec to number of ticks. More...
 
RTEMS_INLINE_ROUTINE void rtems_timespec_from_ticks (uint32_t ticks, struct timespec *time)
 Convert ticks to timespec. More...
 
RTEMS_INLINE_ROUTINE void rtems_timespec_subtract (const struct timespec *start, const struct timespec *end, struct timespec *result)
 Subtract two timespec. More...
 
RTEMS_INLINE_ROUTINE void rtems_timespec_divide_by_integer (const struct timespec *time, uint32_t iterations, struct timespec *result)
 Divide timespec by integer. More...
 
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. More...
 
RTEMS_INLINE_ROUTINE void rtems_timespec_set (struct timespec *_time, time_t _seconds, uint32_t _nanoseconds)
 Set timespec to seconds nanosecond. More...
 
RTEMS_INLINE_ROUTINE void rtems_timespec_zero (struct timespec *_time)
 Zero timespec. More...
 
RTEMS_INLINE_ROUTINE time_t rtems_timespec_get_seconds (struct timespec *_time)
 Get seconds portion of timespec. More...
 
RTEMS_INLINE_ROUTINE uint32_t rtems_timespec_get_nanoseconds (struct timespec *_time)
 Get nanoseconds portion of timespec. More...
 
RTEMS_INLINE_ROUTINE bool rtems_timespec_greater_than (const struct timespec *_lhs, const struct timespec *_rhs)
 Timespec greater than operator. More...
 
RTEMS_INLINE_ROUTINE bool rtems_timespec_equal_to (const struct timespec *lhs, const struct timespec *rhs)
 Timespec equal to Operator. More...
 

Detailed Description

Timespec API.

This include file contains API for manipulating timespecs.