[ECOS] comparing eCos with MATLAB

Andrew Lunn andrew@lunn.ch
Tue Jun 20 07:16:00 GMT 2006


On Tue, Jun 20, 2006 at 11:45:18AM +0500, M Arshad Khan wrote:
> hello
> I want to compare the execution time of an algorithm in eCos with MATLAB.
> In MATLAB we can get the execution time using the TIC-TOC command.
> Is there any function available in eCos that can help me? Or is there
> any technique that can help me in finding the execution time in eCos?
> M. Arshad Khan

cyg_current_time() returns time in ticks, which is generally 10ms.

HAL_CLOCK_READ() gives you the number of hardware ticks since the last
eCos tick. See tm_basic for examples how to use it.

     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



More information about the Ecos-discuss mailing list