uint64_trte_get_tsc_hz(void)
Get the measured frequency of the RDTSC counter
Returns
The TSC frequency for this lcore
staticuint64_trte_get_tsc_cycles(void)[inline],[static]
Return the number of TSC cycles since boot
Returns
the number of cycles
staticuint64_trte_get_timer_cycles(void)[inline],[static]
Get the number of cycles since boot from the default timer.
Returns
The number of cycles
Definition at line 97 of file rte_cycles.h.
staticuint64_trte_get_timer_hz(void)[inline],[static]
Get the number of cycles in one second for the default timer.
Returns
The number of cycles in one second.
Definition at line 119 of file rte_cycles.h.
staticvoidrte_delay_ms(unsignedms)[inline],[static]
Wait at least ms milliseconds.
Parametersms The number of milliseconds to wait.
Definition at line 151 of file rte_cycles.h.
voidrte_delay_us_block(unsignedintus)
Blocking delay function.
Parametersus Number of microseconds to wait.
voidrte_delay_us_sleep(unsignedintus)
Delay function that uses system sleep. Does not block the CPU core.
Parametersus Number of microseconds to wait.
voidrte_delay_us_callback_register(void(*)(unsignedint)userfunc)
Replace rte_delay_us with user defined function.
Parametersuserfunc User function which replaces rte_delay_us. rte_delay_us_block restores builtin block delay
function.