dev.dpdk.org archive mirror
 help / color / mirror / Atom feed
*  Question about specifying constant time interval when using rte_get_timer_cycles().
@ 2015-10-05 10:59 최익성
  2015-10-05 13:10 ` Bruce Richardson
  0 siblings, 1 reply; 2+ messages in thread
From: 최익성 @ 2015-10-05 10:59 UTC (permalink / raw)
  To: dev

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.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-10-05 13:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-05 10:59 Question about specifying constant time interval when using rte_get_timer_cycles() 최익성
2015-10-05 13:10 ` Bruce Richardson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).