From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Fri, 18 Jul 2008 05:37:18 -0700 (PDT) From: egemen kaleli MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-440486890-1216384638=:87114" Message-ID: <825218.87114.qm@domain.hid> Subject: [Xenomai-help] milisecond delay Reply-To: menege1@domain.hid List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: xenomai@xenomai.org --0-440486890-1216384638=:87114 Content-Type: text/plain; charset=us-ascii I need a function that provides milisecond-resolution delay in rt task.do you know any? At least a function that works in gcc.Thank you any help in advance. --0-440486890-1216384638=:87114 Content-Type: text/html; charset=us-ascii

I need a function that provides milisecond-resolution delay in rt task.do you know any?

At least a function that works in gcc.Thank you any help in advance.


--0-440486890-1216384638=:87114-- From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <488092CE.903@domain.hid> Date: Fri, 18 Jul 2008 14:55:42 +0200 From: Sebastian Smolorz MIME-Version: 1.0 References: <825218.87114.qm@domain.hid> In-Reply-To: <825218.87114.qm@domain.hid> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai-help] milisecond delay List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: menege1@domain.hid Cc: xenomai@xenomai.org egemen kaleli wrote: > I need a function that provides milisecond-resolution delay in rt task.do you know any? Please see the Xenomai API at: http://www.xenomai.org/documentation/branches/v2.4.x/html/api/index.html and the description of your favourite Xenomai skin. Normally, you even have a nanosecond resolution. > At least a function that works in gcc. What do you mean with "works in gcc"? Xenomai and its applications are compiled with gcc so where is the problem? -- Sebastian From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <48844DA9.2060809@domain.hid> Date: Mon, 21 Jul 2008 10:49:45 +0200 From: Sebastian Smolorz MIME-Version: 1.0 References: <212629.44124.qm@domain.hid> In-Reply-To: <212629.44124.qm@domain.hid> Content-Type: text/plain; charset=ISO-8859-3; format=flowed Content-Transfer-Encoding: quoted-printable Subject: Re: [Xenomai-help] milisecond delay List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: menege1@domain.hid Cc: xenomai-help Please keep the mailing list CC'ed. egemen kaleli wrote: > =B9 used sleep(0.1) hoping that I would have 0.1 second delay.I was wro= ng. sleep(unsigned int seconds) doesn't take fractions of seconds. > =B9 dont want to use rt_task_sleep() because I dont want to use softwar= e timer. I don't understand what you mean. Do you want to use a dedicated=20 hardware timer? How do you think sleep() works? > so, what can I use that provides milisecond resolution at least.? The very first question for you is: Do you want to delay a task=20 execution under the control of Xenomai or Linux? For Xenomai I already=20 pointed you to the API. For the latter, you could use nanosleep(). --=20 Sebastian