[Tinyos-help] Re: Synchronized timing in TOSSIM

hong liu liu_hong166 at yahoo.com
Sat Mar 5 17:48:19 PST 2005


Hi

I dig out an old post about tos_state.tos_time 
and here is my question(stupid maybe):
For simple task like below:

task toggle
{dbg(DBG_USR1, "time1=%i",tos_state.tos_time);
 .....
 .....// some code, say, toggle LED 1000 times

 dbg(DBG_USR1, "time2=%i",tos_state.tos_time);
}

why I found out tos_state.tos_times are exactly the
same?
Or is it the right way to calculate the interval?

thanks a lot.

liu


On Dec 5, 2004, at 12:20 PM, Philip Levis wrote:
> 
> tos_state.tos_time
> 
> A long long (64-bit) integer; time is kept in terms
> of
> a 4MHz clock 
> (one second is 4 million ticks).
> 
> Phil
> 
> 
> 	
> 		
> __________________________________ 
> Celebrate Yahoo!'s 10th Birthday! 
> Yahoo! Netrospective: 100 Moments of the Web 
> http://birthday.yahoo.com/netrospective/
> 



	
		
__________________________________ 
Celebrate Yahoo!'s 10th Birthday! 
Yahoo! Netrospective: 100 Moments of the Web 
http://birthday.yahoo.com/netrospective/


More information about the Tinyos-help mailing list