All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sebastian Smolorz <smolorz@domain.hid>
To: menege1@domain.hid
Cc: xenomai-help <xenomai@xenomai.org>
Subject: Re: [Xenomai-help] milisecond delay
Date: Mon, 21 Jul 2008 10:49:45 +0200	[thread overview]
Message-ID: <48844DA9.2060809@domain.hid> (raw)
In-Reply-To: <212629.44124.qm@domain.hid>

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


       reply	other threads:[~2008-07-21  8:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <212629.44124.qm@domain.hid>
2008-07-21  8:49 ` Sebastian Smolorz [this message]
2008-07-18 12:37 [Xenomai-help] milisecond delay egemen kaleli
2008-07-18 12:55 ` Sebastian Smolorz

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=48844DA9.2060809@domain.hid \
    --to=smolorz@domain.hid \
    --cc=menege1@domain.hid \
    --cc=xenomai@xenomai.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 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.