ROHC compression/decompression library
Functions
rohc_time_internal.h File Reference

ROHC internal functions related to time. More...

#include "rohc_time.h"
#include <sys/time.h>
Include dependency graph for rohc_time_internal.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

static uint64_t rohc_time_interval (const struct rohc_ts begin, const struct rohc_ts end)
 Compute the interval of time between 2 timestamps.
static uint64_t rohc_get_seconds (void)
 Get the current time in seconds.

Detailed Description

ROHC internal functions related to time.

Author:
Didier Barvaux <didier.barvaux@toulouse.viveris.com>
Thales Communications
Didier Barvaux <didier@barvaux.org>

Function Documentation

static uint64_t rohc_get_seconds ( void  ) [inline, static]

Get the current time in seconds.

Returns:
The current time in seconds
static uint64_t rohc_time_interval ( const struct rohc_ts  begin,
const struct rohc_ts  end 
) [inline, static]

Compute the interval of time between 2 timestamps.

Parameters:
beginThe begin timestamp (in seconds and nanoseconds)
endThe end timestamp (in seconds and nanoseconds)
Returns:
The interval of time in microseconds