On Feb 23, 2010, at 7:43 PM, Yi Tang wrote:

> Hi All,
>
> I read ticksPerSecond() function in TOSSIM and found it returns  
> 10000000000ULL via sim_ticks_per_sec().
>
> I'm wondering why the value is set to that. Does it associate with  
> any specific real-world phenomena (like micro-controller or cc2420   
> frequency)? Or there are any simulator design considerations?

Good question. I can't recall the *exact* reason, but it had to do  
with finding the smallest value that two different time constants  
could evenly divide (so could be represented as an integer number of  
ticks). I can't recall what those two values were.

Phil
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to