FD.io VPP  v20.01-48-g3e0dafb74
Vector Packet Processing
time.h File Reference
+ Include dependency graph for time.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  clib_time_t
 

Macros

#define CLIB_US_TIME_PERIOD   (1e-6)
 
#define CLIB_US_TIME_FREQ   (1.0/CLIB_US_TIME_PERIOD)
 
#define CLIB_TIME_MAX   (1.7976931348623157e+308)
 

Typedefs

typedef f64 clib_time_type_t
 
typedef u64 clib_us_time_t
 

Functions

static u64 clib_cpu_time_now (void)
 
void clib_time_verify_frequency (clib_time_t *c)
 
static f64 clib_time_now_internal (clib_time_t *c, u64 n)
 
static f64 clib_time_now (clib_time_t *c)
 
static void clib_cpu_time_wait (u64 dt)
 
void clib_time_init (clib_time_t *c)
 
static f64 unix_time_now (void)
 
static u64 unix_time_now_nsec (void)
 
static void unix_time_now_nsec_fraction (u32 *sec, u32 *nsec)
 
static f64 unix_usage_now (void)
 
static void unix_sleep (f64 dt)
 

Macro Definition Documentation

◆ CLIB_TIME_MAX

#define CLIB_TIME_MAX   (1.7976931348623157e+308)

Definition at line 221 of file time.h.

◆ CLIB_US_TIME_FREQ

#define CLIB_US_TIME_FREQ   (1.0/CLIB_US_TIME_PERIOD)

Definition at line 201 of file time.h.

◆ CLIB_US_TIME_PERIOD

#define CLIB_US_TIME_PERIOD   (1e-6)

Definition at line 200 of file time.h.

Typedef Documentation

◆ clib_time_type_t

Definition at line 197 of file time.h.

◆ clib_us_time_t

Definition at line 198 of file time.h.

Function Documentation

◆ clib_cpu_time_now()

static u64 clib_cpu_time_now ( void  )
inlinestatic

Definition at line 75 of file time.h.

+ Here is the call graph for this function:

◆ clib_cpu_time_wait()

static void clib_cpu_time_wait ( u64  dt)
inlinestatic

Definition at line 230 of file time.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ clib_time_init()

void clib_time_init ( clib_time_t c)

Definition at line 178 of file time.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ clib_time_now()

static f64 clib_time_now ( clib_time_t c)
inlinestatic

Definition at line 224 of file time.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ clib_time_now_internal()

static f64 clib_time_now_internal ( clib_time_t c,
u64  n 
)
inlinestatic

Definition at line 204 of file time.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ clib_time_verify_frequency()

void clib_time_verify_frequency ( clib_time_t c)

Definition at line 194 of file time.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ unix_sleep()

static void unix_sleep ( f64  dt)
inlinestatic

Definition at line 298 of file time.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ unix_time_now()

static f64 unix_time_now ( void  )
inlinestatic

Definition at line 249 of file time.h.

+ Here is the caller graph for this function:

◆ unix_time_now_nsec()

static u64 unix_time_now_nsec ( void  )
inlinestatic

Definition at line 264 of file time.h.

+ Here is the caller graph for this function:

◆ unix_time_now_nsec_fraction()

static void unix_time_now_nsec_fraction ( u32 sec,
u32 nsec 
)
inlinestatic

Definition at line 276 of file time.h.

+ Here is the caller graph for this function:

◆ unix_usage_now()

static f64 unix_usage_now ( void  )
inlinestatic

Definition at line 289 of file time.h.

+ Here is the caller graph for this function: