[dpdk-dev] Question about specifying constant time interval when using rte_get_timer_cycles().
최익성
pnk003 at naver.com
Mon Oct 5 12:59:27 CEST 2015
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.
More information about the dev
mailing list