RTEMS  5.1
Functions
timestampimpl.h File Reference

Helpers for Manipulating Timestamps. More...

#include <rtems/score/timestamp.h>
#include <rtems/score/basedefs.h>
#include <sys/time.h>

Go to the source code of this file.

Functions

RTEMS_INLINE_ROUTINE void _Timestamp_Set (Timestamp_Control *_time, time_t _seconds, long _nanoseconds)
 Sets timestamp to specified seconds and nanoseconds. More...
 
RTEMS_INLINE_ROUTINE void _Timestamp_Set_to_zero (Timestamp_Control *_time)
 Sets the timestamp to zero. More...
 
RTEMS_INLINE_ROUTINE bool _Timestamp_Less_than (const Timestamp_Control *_lhs, const Timestamp_Control *_rhs)
 Checks if the left hand side timestamp is less than the right one. More...
 
RTEMS_INLINE_ROUTINE bool _Timestamp_Greater_than (const Timestamp_Control *_lhs, const Timestamp_Control *_rhs)
 Checks if the left hand side timestamp is greater than the right one. More...
 
RTEMS_INLINE_ROUTINE bool _Timestamp_Equal_to (const Timestamp_Control *_lhs, const Timestamp_Control *_rhs)
 Checks if the timestamps are equal. More...
 
RTEMS_INLINE_ROUTINE void _Timestamp_Add_to (Timestamp_Control *_time, const Timestamp_Control *_add)
 Adds two timestamps. More...
 
RTEMS_INLINE_ROUTINE void _Timestamp_Subtract (const Timestamp_Control *_start, const Timestamp_Control *_end, Timestamp_Control *_result)
 Subtracts two timestamps. More...
 
RTEMS_INLINE_ROUTINE void _Timestamp_Divide (const Timestamp_Control *_lhs, const Timestamp_Control *_rhs, uint32_t *_ival_percentage, uint32_t *_fval_percentage)
 Divides a timestamp by another timestamp. More...
 
RTEMS_INLINE_ROUTINE time_t _Timestamp_Get_seconds (const Timestamp_Control *_time)
 Gets seconds portion of timestamp. More...
 
RTEMS_INLINE_ROUTINE uint32_t _Timestamp_Get_nanoseconds (const Timestamp_Control *_time)
 Gets nanoseconds portion of timestamp. More...
 
RTEMS_INLINE_ROUTINE uint64_t _Timestamp_Get_as_nanoseconds (const Timestamp_Control *_time)
 Gets the timestamp as nanoseconds. More...
 
RTEMS_INLINE_ROUTINE void _Timestamp_To_timespec (const Timestamp_Control *_timestamp, struct timespec *_timespec)
 Converts timestamp to struct timespec. More...
 
RTEMS_INLINE_ROUTINE void _Timestamp_To_timeval (const Timestamp_Control *_timestamp, struct timeval *_timeval)
 Converts timestamp to struct timeval. More...
 

Detailed Description

Helpers for Manipulating Timestamps.

This include file contains helpers for manipulating timestamps.