RTEMS CPU Kit with SuperCore  4.10.99.0
Macros | Typedefs
timestamp.h File Reference

Helpers for Manipulating Timestamps. More...

#include <sys/time.h>
#include <rtems/score/cpu.h>
#include <rtems/score/timespec.h>
#include <rtems/score/timestamp64.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.

Macros

#define _Timestamp_Set(_time, _seconds, _nanoseconds)   _Timespec_Set( _time, _seconds, _nanoseconds )
 Set timestamp to specified seconds and nanoseconds. More...
 
#define _Timestamp_Set_to_zero(_time)   _Timespec_Set_to_zero( _time )
 Sets the timestamp to zero. More...
 
#define _Timestamp_Is_valid(_time)   _Timespec_Is_valid( _time )
 Determines the validity of a timestamp. More...
 
#define _Timestamp_Less_than(_lhs, _rhs)   _Timespec_Less_than( _lhs, _rhs )
 Less than operator for timestamps. More...
 
#define _Timestamp_Greater_than(_lhs, _rhs)   _Timestamp_Less_than( _rhs, _lhs )
 Greater than operator for timestamps. More...
 
#define _Timestamp_Equal_to(_lhs, _rhs)   _Timespec_Equal_to( _lhs, _rhs )
 Equal to than operator for timestamps. More...
 
#define _Timestamp_Add_to(_time, _add)   _Timespec_Add_to( _time, _add )
 Adds two timestamps. More...
 
#define _Timestamp_To_ticks(_time)   _Timespec_To_ticks( _time )
 Convert timestamp to number of clock ticks. More...
 
#define _Timestamp_From_ticks(_ticks, _time)   _Timespec_From_ticks( _ticks, _time )
 Converts the _ticks value to timestamp format. More...
 
#define _Timestamp_Subtract(_start, _end, _result)   _Timespec_Subtract( _start, _end, _result )
 Subtracts two timestamps. More...
 
#define _Timestamp_Divide_by_integer(_time, _iterations, _result)   _Timespec_Divide_by_integer(_time, _iterations, _result )
 Divides a timestamp by an integer value. More...
 
#define _Timestamp_Divide(_lhs, _rhs, _ival_percentage, _fval_percentage)   _Timespec_Divide( _lhs, _rhs, _ival_percentage, _fval_percentage )
 Divides a timestamp by another timestamp. More...
 
#define _Timestamp_Get_seconds(_time)   _Timespec_Get_seconds( _time )
 Get seconds portion of timestamp. More...
 
#define _Timestamp_Get_nanoseconds(_time)   _Timespec_Get_nanoseconds( _time )
 Get nanoseconds portion of timestamp. More...
 
#define _Timestamp_Get_As_nanoseconds(_timestamp, _nanoseconds)   _Timespec_Get_As_nanoseconds( _timestamp, _nanoseconds )
 Get the timestamp as nanoseconds. More...
 
#define _Timestamp_To_timespec(_timestamp, _timespec)   *(_timespec) = *(_timestamp)
 Convert timestamp to struct timespec. More...
 
#define _Timestamp_To_timeval(_timestamp, _timeval)
 Convert timestamp to struct timeval. More...
 

Typedefs

typedef struct timespec Timestamp_Control
 Define the Timestamp control type.
 

Detailed Description

Helpers for Manipulating Timestamps.

This include file contains helpers for manipulating timestamps.