DPDK 25.03.0-rc0
Data Fields
rte_timecounter Struct Reference

#include <rte_time.h>

Data Fields

uint64_t cycle_last
 
uint64_t nsec
 
uint64_t nsec_mask
 
uint64_t nsec_frac
 
uint64_t cc_mask
 
uint32_t cc_shift
 

Detailed Description

Structure to hold the parameters of a running cycle counter to assist in converting cycles to nanoseconds.

Definition at line 21 of file rte_time.h.

Field Documentation

◆ cycle_last

uint64_t cycle_last

Last cycle counter value read.

Definition at line 23 of file rte_time.h.

◆ nsec

uint64_t nsec

Nanoseconds count.

Definition at line 25 of file rte_time.h.

◆ nsec_mask

uint64_t nsec_mask

Bitmask separating nanosecond and sub-nanoseconds.

Definition at line 27 of file rte_time.h.

◆ nsec_frac

uint64_t nsec_frac

Sub-nanoseconds count.

Definition at line 29 of file rte_time.h.

◆ cc_mask

uint64_t cc_mask

Bitmask for two's complement subtraction of non-64 bit counters.

Definition at line 31 of file rte_time.h.

◆ cc_shift

uint32_t cc_shift

Cycle to nanosecond divisor (power of two).

Definition at line 33 of file rte_time.h.


The documentation for this struct was generated from the following file: