DPDK patches and discussions
 help / color / mirror / Atom feed
From: 최익성 <pnk003@naver.com>
To: dev@dpdk.org
Subject: [dpdk-dev]  Question about specifying constant time interval when using rte_get_timer_cycles().
Date: Mon, 5 Oct 2015 19:59:27 +0900 (KST)	[thread overview]
Message-ID: <a51e66f48be0a2a7bb595085a3cbadb7@cweb29.nm.nhnsystem.com> (raw)

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=UTF-8, Size: 716 bytes --]

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) &gt; DRAIN_TIME ) { ... } 
 
 
Thank you very much.
 
Sincerely Yours,
 
Ick-Sung Choi.

\x16º&«/Šw^yË&¶˜«Š{^•Ê&2‰ÎrÞuß]ùÛm5å\x17­º¹ÏjØcjËâ×žrÉ­¦*âž×¥r‰‘yÇ¢½ç_®‰¦­5Š{^•Ê&š\x06´Ö)ízW(›_vçžvóÆòv—d¢¸\x0f¢Ë_‹\x1c"¶\x11\x1213âw@\b\x1e@ó‡è­×¯v—d¢¸\f¢~Nrݴםw×~uûM´Ð!\x12M\x17œz+Þuú蚊ìš\x06´ÓXߊ{^•Ê&×NöÓÝ|o'æ²h\x1a×M_š)ízW(›\b­„DŒLý99ËvÓ^tã]ùÓNôÑq1´º(§]W"º'>Ší\x01Q

             reply	other threads:[~2015-10-05 10:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-05 10:59 최익성 [this message]
2015-10-05 13:10 ` Bruce Richardson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a51e66f48be0a2a7bb595085a3cbadb7@cweb29.nm.nhnsystem.com \
    --to=pnk003@naver.com \
    --cc=dev@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).