FD.io VPP  v19.08.3-2-gbabecb413
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)
 

Variables

format_function_t format_clib_time
 

Macro Definition Documentation

◆ CLIB_TIME_MAX

#define CLIB_TIME_MAX   (1.7976931348623157e+308)

Definition at line 227 of file time.h.

◆ CLIB_US_TIME_FREQ

#define CLIB_US_TIME_FREQ   (1.0/CLIB_US_TIME_PERIOD)

Definition at line 207 of file time.h.

◆ CLIB_US_TIME_PERIOD

#define CLIB_US_TIME_PERIOD   (1e-6)

Definition at line 206 of file time.h.

Typedef Documentation

◆ clib_time_type_t

Definition at line 203 of file time.h.

◆ clib_us_time_t

Definition at line 204 of file time.h.

Function Documentation

◆ clib_cpu_time_now()

static u64 clib_cpu_time_now ( void  )
inlinestatic

Definition at line 81 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 236 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 207 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 230 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 210 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 251 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 304 of file time.h.

+ Here is the call graph for this function:

◆ unix_time_now()

static f64 unix_time_now ( void  )
inlinestatic

Definition at line 255 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 270 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 282 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 295 of file time.h.

+ Here is the caller graph for this function:

Variable Documentation

◆ format_clib_time

format_function_t format_clib_time

Definition at line 76 of file time.h.