Sha, Depends on how you have it wired. If you have it call out as "uses interface LocalTime<TMilli> as LocalTime" then you would divide the result of LocalTime.get() by 1024 to get seconds. Similar for others.
Basically it returns the number of ticks since bootup. Since the example above was implemented using TMilli, then 1024 ticks = 1 second. -Shaun -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sha Liu Sent: Tuesday, March 04, 2008 11:18 AM To: [email protected] Subject: [Tinyos-help] What is the unit for the LocalTime interface wired toTimerC on TelosB? Hi, I'm wonder what is the unit for the LocalTime interface wired to TimerC on TelosB. Basically, what number shall be multiplied to the number given by LocalTime.read()? I searched the mailing list archive but couldn't to find any answer. It will also be appreciated if any other pointers could be provided. Thanks, Sha _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
