Hi Azhar, did you read the documentation for the Timer interface?  Take a
look at it, cut+paste below.  For instance, getNow is the current, free
running time.  And, for a periodic timer firing every 1000 units, getdt
returns 1000.   - Cory

 /**
  * Return the current time.
  * @return Current time.
  */
 command uint32_t getNow();

 /**
  * Return the time anchor for the previously started timer or the time of
  * the previous event for periodic timers. The next fired event will occur
  * at gett0() + getdt().
  * @return Timer's base time.
  */
 command uint32_t gett0();

 /**
  * Return the delay or period for the previously started timer. The next
  * fired event will occur at gett0() + getdt().
  * @return Timer's interval.
  */
 command uint32_t getdt();


On 5/2/07, Muhammad Azhar <[EMAIL PROTECTED]> wrote:

Hi,

  Before I go on assuming that I understand what gett0() and getdt() from
the Timer interface means, I'd like to confirm if gett0() + getdt() would
get me getNow()?
   Assuming if there is a Node 5 in the network that has a milliseconds
periodic timer of 1 minute.  If, for instance, it has run for 6 min and 27
secs when I call gett0() and getdt(), will gett0() return me 6 min and
will
getdt() return me 27secs (in milliseconds of course)?

   Thanks.

Regards,
Azhar


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

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

Reply via email to