GNU Radio 3.3.0 C++ API
highResTimeFunctions.h File Reference
#include <ctime>
#include <sys/time.h>
#include <cmath>
Include dependency graph for highResTimeFunctions.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

static bool timespec_greater (const struct timespec *t1, const struct timespec *t0)
static bool timespec_greater (const struct timespec t1, const struct timespec t0)
static bool timespec_less (const struct timespec *t1, const struct timespec *t0)
static bool timespec_less (const struct timespec t1, const struct timespec t0)
static bool timespec_equal (const struct timespec *t1, const struct timespec *t0)
static bool timespec_equal (const struct timespec t1, const struct timespec t0)
static void timespec_reset (struct timespec *ret)
static void set_normalized_timespec (struct timespec *ts, time_t sec, long nsec)
static struct timespec convert_to_timespec (const double timeValue)
static double convert_from_timespec (const timespec actual)
static void timespec_add (struct timespec *ret, const struct timespec *t1, const struct timespec *t0)
static void timespec_add (struct timespec *ret, const struct timespec t1, const struct timespec t0)
static struct timespec timespec_add (const struct timespec t1, const struct timespec t0)
static struct timespec timespec_add (const struct timespec t1, const double time0)
static void timespec_subtract (struct timespec *ret, const struct timespec *t1, const struct timespec *t0)
static void timespec_subtract (struct timespec *ret, const struct timespec t1, const struct timespec t0)
static struct timespec timespec_subtract (const struct timespec t1, const struct timespec t0)
static struct timespec timespec_subtract (const struct timespec t1, const double time0)
static double diff_timespec (struct timespec *ret, const struct timespec *t1, const struct timespec *t0)
static double diff_timespec (struct timespec *ret, const struct timespec t1, const struct timespec t0)
static double diff_timespec (const struct timespec t1, const struct timespec t0)
static double diff_timespec (const struct timespec *t1, const struct timespec *t0)
static void get_highres_clock (struct timespec *ret)
static struct timespec get_highres_clock ()
static bool timespec_empty (const struct timespec *ret)
static bool timespec_empty (const struct timespec ret)

Variables

static const long NSEC_PER_SEC = 1000000000L

Function Documentation

static double convert_from_timespec ( const timespec  actual) [inline, static]

References NSEC_PER_SEC.

Referenced by diff_timespec().

static struct timespec convert_to_timespec ( const double  timeValue) [static, read]
static double diff_timespec ( struct timespec *  ret,
const struct timespec *  t1,
const struct timespec *  t0 
) [inline, static]
static double diff_timespec ( struct timespec *  ret,
const struct timespec  t1,
const struct timespec  t0 
) [inline, static]

References diff_timespec().

static double diff_timespec ( const struct timespec  t1,
const struct timespec  t0 
) [inline, static]

References diff_timespec(), and NULL.

static double diff_timespec ( const struct timespec *  t1,
const struct timespec *  t0 
) [inline, static]

References diff_timespec(), and NULL.

static void get_highres_clock ( struct timespec *  ret) [inline, static]

References NULL.

Referenced by get_highres_clock().

static struct timespec get_highres_clock ( ) [static, read]

References get_highres_clock().

static void set_normalized_timespec ( struct timespec *  ts,
time_t  sec,
long  nsec 
) [inline, static]
static void timespec_add ( struct timespec *  ret,
const struct timespec *  t1,
const struct timespec *  t0 
) [inline, static]
static void timespec_add ( struct timespec *  ret,
const struct timespec  t1,
const struct timespec  t0 
) [inline, static]

References timespec_add().

static struct timespec timespec_add ( const struct timespec  t1,
const struct timespec  t0 
) [static, read]

References timespec_add().

static struct timespec timespec_add ( const struct timespec  t1,
const double  time0 
) [static, read]
static bool timespec_empty ( const struct timespec *  ret) [inline, static]

Referenced by timespec_empty().

static bool timespec_empty ( const struct timespec  ret) [inline, static]

References timespec_empty().

static bool timespec_equal ( const struct timespec  t1,
const struct timespec  t0 
) [inline, static]
static bool timespec_equal ( const struct timespec *  t1,
const struct timespec *  t0 
) [inline, static]
static bool timespec_greater ( const struct timespec *  t1,
const struct timespec *  t0 
) [inline, static]

Referenced by diff_timespec().

static bool timespec_greater ( const struct timespec  t1,
const struct timespec  t0 
) [inline, static]
static bool timespec_less ( const struct timespec  t1,
const struct timespec  t0 
) [inline, static]
static bool timespec_less ( const struct timespec *  t1,
const struct timespec *  t0 
) [inline, static]
static void timespec_reset ( struct timespec *  ret) [inline, static]
static void timespec_subtract ( struct timespec *  ret,
const struct timespec *  t1,
const struct timespec *  t0 
) [inline, static]

References set_normalized_timespec().

Referenced by timespec_subtract().

static struct timespec timespec_subtract ( const struct timespec  t1,
const double  time0 
) [static, read]
static struct timespec timespec_subtract ( const struct timespec  t1,
const struct timespec  t0 
) [static, read]

References timespec_subtract().

static void timespec_subtract ( struct timespec *  ret,
const struct timespec  t1,
const struct timespec  t0 
) [inline, static]

References timespec_subtract().


Variable Documentation

const long NSEC_PER_SEC = 1000000000L [static]