* [Xenomai-help] milisecond delay
@ 2008-07-18 12:37 egemen kaleli
2008-07-18 12:55 ` Sebastian Smolorz
0 siblings, 1 reply; 3+ messages in thread
From: egemen kaleli @ 2008-07-18 12:37 UTC (permalink / raw)
To: xenomai
[-- Attachment #1: Type: text/plain, Size: 165 bytes --]
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.
[-- Attachment #2: Type: text/html, Size: 297 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Xenomai-help] milisecond delay
2008-07-18 12:37 [Xenomai-help] milisecond delay egemen kaleli
@ 2008-07-18 12:55 ` Sebastian Smolorz
0 siblings, 0 replies; 3+ messages in thread
From: Sebastian Smolorz @ 2008-07-18 12:55 UTC (permalink / raw)
To: menege1; +Cc: xenomai
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Xenomai-help] milisecond delay
[not found] <212629.44124.qm@domain.hid>
@ 2008-07-21 8:49 ` Sebastian Smolorz
0 siblings, 0 replies; 3+ messages in thread
From: Sebastian Smolorz @ 2008-07-21 8:49 UTC (permalink / raw)
To: menege1; +Cc: xenomai-help
Please keep the mailing list CC'ed.
egemen kaleli wrote:
> ı used sleep(0.1) hoping that I would have 0.1 second delay.I was wrong.
sleep(unsigned int seconds) doesn't take fractions of seconds.
> ı dont want to use rt_task_sleep() because I dont want to use software timer.
I don't understand what you mean. Do you want to use a dedicated
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
execution under the control of Xenomai or Linux? For Xenomai I already
pointed you to the API. For the latter, you could use nanosleep().
--
Sebastian
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-07-21 8:49 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-18 12:37 [Xenomai-help] milisecond delay egemen kaleli
2008-07-18 12:55 ` Sebastian Smolorz
[not found] <212629.44124.qm@domain.hid>
2008-07-21 8:49 ` Sebastian Smolorz
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.