UniRec 3.3.2
|
Types, macros and function for UniRec timestamp format. More...
#include <stdint.h>
Go to the source code of this file.
Macros | |
#define | UR_TIME_NSEC_TO_FRAC 0x44B82FA0AULL |
#define | ur_time_from_sec_nsec(sec, nsec) |
Convert seconds and nanoseconds to ur_time_t. | |
#define | ur_time_from_sec_usec(sec, usec) |
Convert seconds and microseconds to ur_time_t. | |
#define | ur_time_from_sec_msec(sec, msec) |
Convert seconds and milliseconds to ur_time_t. | |
#define | ur_time_get_sec(time) |
Get number of seconds from ur_time_t. | |
#define | ur_time_get_nsec(time) |
Get number of nanoseconds from ur_time_t. | |
#define | ur_time_get_usec(time) |
Get number of microeconds from ur_time_t. | |
#define | ur_time_get_msec(time) |
Get number of milliseconds from ur_time_t. | |
Typedefs | |
typedef uint64_t | ur_time_t |
Type of timestamps used in UniRec Timestamps in UniRec are stored as number of seconds from Unix epoch in 64bit fixed point number (32bit integral part, 32bit fraction part). | |
Functions | |
static uint64_t | ur_timediff (ur_time_t a, ur_time_t b) |
static uint64_t | ur_timediff_us (ur_time_t a, ur_time_t b) |
static uint64_t | ur_timediff_ns (ur_time_t a, ur_time_t b) |
uint8_t | ur_time_from_string (ur_time_t *ur, const char *str) |
Types, macros and function for UniRec timestamp format.
Definition in file ur_time.h.