Skip to contentSkip to conversation

milisecond delay

Xenomai-help Sebastian Smolorz 1 participant 1 message Jul 21, 2008 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

Please keep the mailing list CC'ed.

Quoted 1 line · egemen kaleli

ı 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.

Quoted 1 line

ı 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?

Quoted 1 line

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().

Signature · 1 line
Sebastian