This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: comparing eCos with MATLAB


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]