DPDK  17.05.2
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 46 of file rte_time.h.

Field Documentation

uint64_t cycle_last

Last cycle counter value read.

Definition at line 48 of file rte_time.h.

uint64_t nsec

Nanoseconds count.

Definition at line 50 of file rte_time.h.

uint64_t nsec_mask

Bitmask separating nanosecond and sub-nanoseconds.

Definition at line 52 of file rte_time.h.

uint64_t nsec_frac

Sub-nanoseconds count.

Definition at line 54 of file rte_time.h.

uint64_t cc_mask

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

Definition at line 56 of file rte_time.h.

uint32_t cc_shift

Cycle to nanosecond divisor (power of two).

Definition at line 58 of file rte_time.h.


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