[ECOS] R: [ECOS] Timing with longjmp
Jonathan Larmour
jifl@eCosCentric.com
Tue Sep 2 02:44:00 GMT 2003
Michele Portolan wrote:
>>There is not currently a test to time this. If you look at the
>>code in 'tm_basic.cxx', you can get a pretty good idea how to measure
>>such [small] quantities. Basically, you need to capture the current
>>raw clock time (tm_basic uses 'HAL_CLOCK_READ()' for this). Grab the
>>value before doing the longjump and then after you land in the new
>>location. Then it's just simple math to figure out how long it took.
>>Again, tm_basic can show you how to convert the values to real time
>>(micro-seconds or whatever).
>>
>>Why are you bothering with such minutia?
>
> I am making some peculiar timing measures on eCos to develop some idea, as I
> said on a precedent post. That is the reason why I am so interested in such
> little things: they could make the difference.
Watch out for HAL_CLOCK_READ wrapping BTW.
Jifl
--
eCosCentric http://www.eCosCentric.com/ The eCos and RedBoot experts
--["No sense being pessimistic, it wouldn't work anyway"]-- Opinions==mine
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
More information about the Ecos-discuss
mailing list