RTEMS
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

static __inline__ void _Timestamp_Set (Timestamp_Control *_time, time_t _seconds, long _nanoseconds)
 Sets timestamp to specified seconds and nanoseconds. More...
 
static __inline__ void _Timestamp_Set_to_zero (Timestamp_Control *_time)
 Sets the timestamp to zero. More...
 
static __inline__ 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...
 
static __inline__ 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...
 
static __inline__ bool _Timestamp_Equal_to (const Timestamp_Control *_lhs, const Timestamp_Control *_rhs)
 Checks if the timestamps are equal. More...
 
static __inline__ void _Timestamp_Add_to (Timestamp_Control *_time, const Timestamp_Control *_add)
 Adds two timestamps. More...
 
static __inline__ void _Timestamp_Subtract (const Timestamp_Control *_start, const Timestamp_Control *_end, Timestamp_Control *_result)
 Subtracts two timestamps. More...
 
static __inline__ 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...
 
static __inline__ time_t _Timestamp_Get_seconds (const Timestamp_Control *_time)
 Gets seconds portion of timestamp. More...
 
static __inline__ uint32_t _Timestamp_Get_nanoseconds (const Timestamp_Control *_time)
 Gets nanoseconds portion of timestamp. More...
 
static __inline__ uint64_t _Timestamp_Get_as_nanoseconds (const Timestamp_Control *_time)
 Gets the timestamp as nanoseconds. More...
 
static __inline__ void _Timestamp_To_timespec (const Timestamp_Control *_timestamp, struct timespec *_timespec)
 Converts timestamp to struct timespec. More...
 
static __inline__ 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.

Definition in file timestampimpl.h.