Timer.getNow() returns the time since boot, so if you jsut measure this time directly you will know the amount of time thats passed since the last reboot.
Kevin On Fri, Apr 4, 2008 at 4:46 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi everyone, > I want to measure some Deluge's features, > in particular I > want to measure time of rebooting of each motes. > > Before the reboot > instruction (NetProg.programImageAndReboot(..)) > I save on mote's flash > the value returned from call Timer.getNow(). > After mote reboots, > the > first instruction that mote run is another call Timer.getNow(); > so time > of rebooting for the mote is the difference between > the last call > Timer.getNow() and value saved before on flash. > > My problem is that > Timer.getNow() doesn't return the current system time > so my measures > are wrong. > How can I solve my problem? > Is ther some function in TinyOS > 2.x that return the current system time > like the funcion date in Unix? > > Thanks in advance > _______________________________________________ > 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
