[Tinyos-help] Question regarding computation time calculation for a task in MicroSeconds in Atmega128

2011-03-15 Thread Thapa, Sobit
I am using Timer3 as code posted below. I call startCounting() before a task executes and I call stopCounting after task executes. But, I am getting variable result. Is there any mistake in my code or somebody can provide code performing similar job. And, it is Atmega128 specific. #include "pr

Re: [Tinyos-help] Question regarding computation time calculation for a task in MicroSeconds in Atmega128

2011-03-15 Thread Michael Schippling
How much do the results vary? There are other interrupts and such that happen during processing, so even a very regular "foreground" process might slip'n'slide a bit. At a cursory review level I'd think your code is probably OK, although I believe there is a counter wrap-around interrupt you could

Re: [Tinyos-help] Question regarding computation time calculation for a task in MicroSeconds in Atmega128

2011-03-15 Thread Thapa, Sobit
@millennium.berkeley.edu Subject: Re: [Tinyos-help] Question regarding computation time calculation for a task in MicroSeconds in Atmega128 How much do the results vary? There are other interrupts and such that happen during processing, so even a very regular "foreground" process might slip

Re: [Tinyos-help] Question regarding computation time calculation for a task in MicroSeconds in Atmega128

2011-03-16 Thread Thapa, Sobit
; tinyos-help@millennium.berkeley.edu Subject: Re: [Tinyos-help] Question regarding computation time calculation for a task in MicroSeconds in Atmega128 How much do the results vary? There are other interrupts and such that happen during processing, so even a very regular "foreground" pro