[Tinyos-help] how to display the current time in dbg msg in TinyOS 2.x

qiting chen cqt_chaos at yahoo.com.cn
Fri Jun 1 01:55:27 PDT 2007


hi
  I'd like to display the current time information in a dbg msg in TinyOS2.x. I know in TinyOS1.x,such a dbg msg as below can do this.
         dbg(DBG_USR1,"Current time is %d",tos_state.tos_time);
  But in TinyOS2.x,I don't known how to access the current time information besides using t.time().But I hope the current time information could appear in a dbg msg.Can anybody tell me how can i do this?
   
  thank you in advance

       
---------------------------------
 雅虎免费邮箱3.5G容量,20M附件!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20070601/46883e0c/attachment.htm


More information about the Tinyos-help mailing list