This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: Execution time
- From: Andrew Lunn <andrew at lunn dot ch>
- To: Michele Portolan <micheleportolan at yahoo dot it>
- Cc: ecos-discuss at ecos dot sourceware dot org
- Date: Wed, 20 Sep 2006 09:09:33 +0200
- Subject: Re: [ECOS] Execution time
- References: <4510E0ED.7010307@yahoo.it>
On Wed, Sep 20, 2006 at 08:34:21AM +0200, Michele Portolan wrote:
> I would need to check the execution time of different implementations of
> the same function: is there a simple way to do it?
> I lloked up "tm_basic.cxx", but I think my case is far simpler because I
> have no scheduler (for the moment).
If you want to keep it simple use HAL_CLOCK_READ(). But you will have
to handle wrap around and scaling between HAL CLOCK ticks and real
ticks.
Andrew
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss