Hi, That is because you are using %f to display an integer variable. Replace by something like: dbg(DBG_TIME, "Current Time is %u\n", currentTime);
Arik On Tue, Mar 2, 2010 at 15:57, Nahla Hmili <[email protected]> wrote: > Hi all, > > I called the command getLow32() of the interface Time as follows : > > uint32_t currentTime=call Time.getLow32(); > dbg(DBG_TIME, "Current Time is %f\n", currentTime); > > > but when I run the simulation, I always got 0 displayed. > I want to got the current system time in order to display it in my DBG ; > > > Thx. > > _______________________________________________ > Tinyos-help mailing list > [email protected] > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > -- Best Regards, Arik Sapojnik
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
