* delay programming
@ 2006-05-24 9:23 tony
0 siblings, 0 replies; 2+ messages in thread
From: tony @ 2006-05-24 9:23 UTC (permalink / raw)
To: linuxppc-embedded@ozlabs.org
hi all
I want to delay 1ms in the program,
does usleep(1000) works accurate?
any good idea?
regards
tony
^ permalink raw reply [flat|nested] 2+ messages in thread
* RE: delay programming
@ 2006-05-24 9:48 Li Yang-r58472
0 siblings, 0 replies; 2+ messages in thread
From: Li Yang-r58472 @ 2006-05-24 9:48 UTC (permalink / raw)
To: 'tony', linuxppc-embedded
That depends on how accurate you want. Sleep() functions can't be too accurate
for Linux schedule characteristic. To get best accuracy, you can use hardware
timer. udelay() is a choice which reduces the overall system performance.
Best Regards,
Leo
> -----Original Message-----
> From: linuxppc-embedded-bounces+leoli=freescale.com@ozlabs.org
> [mailto:linuxppc-embedded-bounces+leoli=freescale.com@ozlabs.org] On Behalf
> Of tony
> Sent: Wednesday, May 24, 2006 5:24 PM
> To: linuxppc-embedded@ozlabs.org
> Subject: delay programming
>
>
> hi all
> I want to delay 1ms in the program,
> does usleep(1000) works accurate?
> any good idea?
>
> regards
> tony
>
>
> _______________________________________________
> Linuxppc-embedded mailing list
> Linuxppc-embedded@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-embedded
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-05-24 9:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-24 9:23 delay programming tony
-- strict thread matches above, loose matches on Subject: below --
2006-05-24 9:48 Li Yang-r58472
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox