CNDP  22.08.0
cne_cycles.h File Reference
#include <cne_atomic.h>
#include <cne_common.h>

Go to the source code of this file.

Functions

static uint64_t cne_rdtsc (void)
 
static uint64_t cne_rdtsc_precise (void)
 

Function Documentation

◆ cne_rdtsc()

static uint64_t cne_rdtsc ( void  )
inlinestatic

Read and return the timestamp counter value

Returns
Returns the 64bit timesample counter value.
Examples
examples/timer/main.c.

Definition at line 32 of file cne_cycles.h.

◆ cne_rdtsc_precise()

static uint64_t cne_rdtsc_precise ( void  )
inlinestatic

Read and return the timestamp precise counter value

Returns
Returns the 64bit timesample counter value.
Examples
examples/timer/main.c.

Definition at line 58 of file cne_cycles.h.