Re: [Tinyos-help] two timers

2007-12-01 Thread Kevin Klues
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 val

[Tinyos-help] two timers

2007-11-30 Thread Vijayant Bhatnagar
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