Dear DPDK experts.

I have a question about specifying constant time interval when using 
rte_get_timer_cycles();

Would you let me know how can I specify constant time 30 seconds of DRAIN_TIME?

I will really appreciate if let me know.


uint64_t now, old, DRAIN_TIME ;

DRAIN_TIME =  ?   // 30 seconds.

old = rte_get_timer_cycles();
... 
now = rte_get_timer_cycles(); 

if ((new-old) > DRAIN_TIME ) { ... } 


Thank you very much.

Sincerely Yours,

Ick-Sung Choi.

Reply via email to