getNow() returns the local time of the node since it was booted up,
independent of which timer interface it is called with.  If you want
to see how much time has elapsed since you started a timer you would
want something like (getNow() - gett0()), but keep in mind that the
timer registers these values are read from roll over eventually, so
you might need to adjust the numbers you calculate for this.

Kevin

On Nov 30, 2007 9:34 PM, Vijayant Bhatnagar <[EMAIL PROTECTED]> wrote:
> hi,
> We have implemented two timers (both are being started at different times).
> But after sometime when i do timer1.getNow() and timer2.getNow(), I get the
> same values. Isn't it that incorrect ?
>
> How can we have two timers running independently ? Any help is appreciated.
>
> Regards,
> Vijayant
>
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>



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

Reply via email to