I assume you mean computation cost in terms of time.

I haven't messed with the atmel processors in years and currently am working
with the msp430 processors
but the concepts are equivilent.

There should be a h/w timer running on the atm128 that should be ticking at
1us.   you need to find that
timer register and figure out how to snapshot it.

Then you take a snapshot at the start of the code you are measuring and then
another when the computation
completes.    You need to be aware of the width of the timer and be careful
of overflows which cause problems for
determining the final result.

eric


On Mon, Mar 14, 2011 at 3:14 PM, Sobit Thapa <st1...@txstate.edu> wrote:

> Hi,
>
> I need a help regarding computation cost of a function which I want to read
> in
> Micro Second...............I need a sample code for Atm128 processor. Can
> anybody please help me...........
>
> Its urgent and I appreciate your help.
>
> Regards,
> Sobit
> Graduate Researcher
> Texas State University
>
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>



-- 
Eric B. Decker
Senior (over 50 :-) Researcher
_______________________________________________
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to