This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: minimum execution time with ecos
On 2007-04-13, M Arshad Khan <marshadkhan@gmail.com> wrote:
> can any body tell me wht is the minimum time delay that we can
> achive with ecos.
If youw ant to actually put a thread to sleep, the minimum
delay is one clock tick. Usually 1ms or 10ms. If you want to
busy way, the minimum delay is platform-dependant -- usually
tens or hundreds of nanoseconds.
> i want to run a simulation on ecos that will run in less then
> a tick(10mSec), is it possible and want to find its exact
> execution time.. how to find that.
That's a completely different question. The minimum delay has
nothing to do with the granularity with which you can measure
time. There's a call you can make to return the
number of hardware timer counts since the last system timer tick.
See the kernel test tm_basic sources -- it does exactly what
you're trying to do.
--
Grant Edwards grante Yow! ... Um...Um...
at
visi.com
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss