RTEMS CPU Kit with SuperCore  4.11.99.0
Typedefs | Functions
timestamp.h File Reference

Helpers for Manipulating Timestamps. More...

#include <sys/time.h>
#include <rtems/score/basedefs.h>
#include <rtems/score/timespec.h>
Include dependency graph for timestamp.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef struct bintime Timestamp_Control
 Define the Timestamp control type.
 

Functions

RTEMS_INLINE_ROUTINE void _Timestamp_Set (Timestamp_Control *_time, time_t _seconds, long _nanoseconds)
 Set 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)
 Less than operator for timestamps. More...
 
RTEMS_INLINE_ROUTINE bool _Timestamp_Greater_than (const Timestamp_Control *_lhs, const Timestamp_Control *_rhs)
 Greater than operator for timestamps. More...
 
RTEMS_INLINE_ROUTINE bool _Timestamp_Equal_to (const Timestamp_Control *_lhs, const Timestamp_Control *_rhs)
 Equal to than operator for timestamps. More...
 
RTEMS_INLINE_ROUTINE time_t _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)
 Get seconds portion of timestamp. More...
 
RTEMS_INLINE_ROUTINE uint32_t _Timestamp_Get_nanoseconds (const Timestamp_Control *_time)
 Get nanoseconds portion of timestamp. More...
 
RTEMS_INLINE_ROUTINE uint64_t _Timestamp_Get_as_nanoseconds (const Timestamp_Control *_time)
 Get the timestamp as nanoseconds. More...
 
RTEMS_INLINE_ROUTINE void _Timestamp_To_timespec (const Timestamp_Control *_timestamp, struct timespec *_timespec)
 Convert timestamp to struct timespec. More...
 
RTEMS_INLINE_ROUTINE void _Timestamp_To_timeval (const Timestamp_Control *_timestamp, struct timeval *_timeval)
 Convert timestamp to struct timeval. More...
 

Detailed Description

Helpers for Manipulating Timestamps.

This include file contains helpers for manipulating timestamps.