This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: comparing eCos with MATLAB
- From: Andrew Lunn <andrew at lunn dot ch>
- To: M Arshad Khan <marshadkhan at gmail dot com>
- Cc: ecos-discuss at ecos dot sourceware dot org
- Date: Tue, 20 Jun 2006 09:16:21 +0200
- Subject: Re: [ECOS] comparing eCos with MATLAB
- References: <4690b0d10606192345k5fb16de6ief0432d2d41cf428@mail.gmail.com>
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