Forum Topic - microsecond sleep on QNX 7.1: (5 Items)
   
microsecond sleep on QNX 7.1  
I am using QNX 7.1 on QualcommSA8540P and find that the least sleep time is 1 ms when using usleep(). Is there any way 
to achieve microsecond sleep?
Re: microsecond sleep on QNX 7.1  
It is the tick time of your CPU, change it to a lower value (For instance 100us)
See:
https://www.qnx.com/developers/docs/7.1/#com.qnx.doc.neutrino.prog/topic/timing.html

If You requires an exact us delay, You cau use one of hardware timers of the CPU.
Bye
Re: microsecond sleep on QNX 7.1  
Hi,

if you need really shorts delay you could use a "busy loop" using ClockCycles() call.
Of course you'll need a thread and it is CPU consuming.
Otherwise, I agree with Mario. You should also consider the interrupt dispatch time as a minimal delay.

Bye



Re: microsecond sleep on QNX 7.1  
QNX 7 has high-resolution timers. You can use these, but depending on how many microseconds we are talking about setting
 up the timer, blocking and waiting for it to fire may not justify the cost.

--Elad
Re: microsecond sleep on QNX 7.1  
The minimum resolution for HRTs is 10us anyway.