Hi everybody, I want to measure the delay. I use another approach to get the system time of the mote. I use the command call SysTime.get(ftime); But I am surprised to find that the system time is unusual. I just wonder whether I use a wrong command. In addition, the value of the system time (stored in ftime) is 32bits int, so what's the unit of the 32bits int, and what is the meaning of each bits. I mean, does it represent second? minute? hour? or other time units? By the way, if my approach is wrong, can somebody give me some hints or approaches to get the system time? // the following is part of my program Thanks! Guokai Zeng

command result_t IntOutput.output(uint16_t value) { uint8_t digit1 ; uint8_t digit2 ; uint8_t digit3 ; uint8_t digit4 ; uint32_t * ftime; uint32_t currentTime; uint32_t test; call SysTime.get(ftime); currentTime = *ftime; if (!pending) { pending = TRUE; data.data[0] = digit1; data.data[1] = digit2; data.data[2] = digit3; data.data[3] = digit4; if (call Send.send(TOS_BCAST_ADDR, 4, &data)) return SUCCESS; pending = FALSE; } return FAIL; }

_________________________________________________________________
免费下载 MSN Explorer: http://explorer.msn.com/lccn
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to