public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Execution time
@ 2006-09-20  6:35 Michele Portolan
  2006-09-20  7:09 ` Andrew Lunn
  2006-09-20 16:42 ` Nick Garnett
  0 siblings, 2 replies; 4+ messages in thread
From: Michele Portolan @ 2006-09-20  6:35 UTC (permalink / raw)
  To: ecos-discuss

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).
Thanks anyone,

Michele

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [ECOS] Execution time
  2006-09-20  6:35 [ECOS] Execution time Michele Portolan
@ 2006-09-20  7:09 ` Andrew Lunn
  2006-09-20 16:42 ` Nick Garnett
  1 sibling, 0 replies; 4+ messages in thread
From: Andrew Lunn @ 2006-09-20  7:09 UTC (permalink / raw)
  To: Michele Portolan; +Cc: ecos-discuss

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [ECOS] Execution time
  2006-09-20  6:35 [ECOS] Execution time Michele Portolan
  2006-09-20  7:09 ` Andrew Lunn
@ 2006-09-20 16:42 ` Nick Garnett
  2006-09-21  3:25   ` Kalyani, Korubilli (IE10)
  1 sibling, 1 reply; 4+ messages in thread
From: Nick Garnett @ 2006-09-20 16:42 UTC (permalink / raw)
  To: Michele Portolan; +Cc: ecos-discuss

Michele Portolan <micheleportolan@yahoo.it> writes:

> 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).
> Thanks anyone,


tm_basic shows the standard way of doing this: execute the test
routine many times in a loop, time the whole thing, and calculate the
time per run: total_time/loop_count .

Timing a single excecution is prone to all sorts of interference from
interrupts, cache effects, pipeline effects, DRAM refresh
etc. Multiple runs helps to minimize the effect of these things.

-- 
Nick Garnett                                 eCos Kernel Architect
http://www.ecoscentric.com            The eCos and RedBoot experts


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: [ECOS] Execution time
  2006-09-20 16:42 ` Nick Garnett
@ 2006-09-21  3:25   ` Kalyani, Korubilli (IE10)
  0 siblings, 0 replies; 4+ messages in thread
From: Kalyani, Korubilli (IE10) @ 2006-09-21  3:25 UTC (permalink / raw)
  To: Nick Garnett; +Cc: ecos-discuss

Hi,

I want to know how to implement Application exception handler in ECOS.
Plz provide me the sufficient information regarding this as soon as
possible please.

 

Regards,

Kalyani

-----Original Message-----
From: ecos-discuss-owner@ecos.sourceware.org
[mailto:ecos-discuss-owner@ecos.sourceware.org] On Behalf Of Nick
Garnett
Sent: Wednesday, September 20, 2006 10:13 PM
To: Michele Portolan
Cc: ecos-discuss@ecos.sourceware.org
Subject: Re: [ECOS] Execution time

Michele Portolan <micheleportolan@yahoo.it> writes:

> 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).
> Thanks anyone,


tm_basic shows the standard way of doing this: execute the test
routine many times in a loop, time the whole thing, and calculate the
time per run: total_time/loop_count .

Timing a single excecution is prone to all sorts of interference from
interrupts, cache effects, pipeline effects, DRAM refresh
etc. Multiple runs helps to minimize the effect of these things.

-- 
Nick Garnett                                 eCos Kernel Architect
http://www.ecoscentric.com            The eCos and RedBoot experts


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-09-21  3:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-20  6:35 [ECOS] Execution time Michele Portolan
2006-09-20  7:09 ` Andrew Lunn
2006-09-20 16:42 ` Nick Garnett
2006-09-21  3:25   ` Kalyani, Korubilli (IE10)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).