[Tinyos-help] ticksPerSecond()

wafa jaballah wafa.jaballah at gmail.com
Sat Apr 17 10:55:00 PDT 2010


hi all,
I have to simulate an application and more specially I want to calculate the
variation of a variable in function of time (every 1ms). To do that , I used
t.ticksPerSecond() in my python file.

I learned from TEP102 that  one second contains 1024 binary milliseconds,
32768 32kHz ticks, or 1048576 microseconds.
In the following code, what is the value in ms of  1024 *
t.ticksPerSecond().

 while (t.time() < 1024 * t.ticksPerSecond()):

t.runNextEvent();



Thanks,


-- 
Wafa Ben Jaballah
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20100417/43bc8c14/attachment.htm 


More information about the Tinyos-help mailing list