Hi, On Wednesday 09 May 2007 20:52, shanza khan wrote: > I want to get time for execting a function. So i want to used timer > interface with TMicro can anybody tell me that which component i should use > for it that provide timer interface with Tmicro.
TinyOS 1.1.x or 2.x? What hardware platform? If you don't need Timer.fired() but are just measuring the distance between two events -- and you don't mind the measurement itself subtly changing the timing -- a Counter interface is probably fine. Under TinyOS 2.x on an msp430 based platform, you can use Msp430CounterMicroC, which provides a Counter<TMicro, uint16_t> interface. On the mica platform, you can use CounterMicro32C, which provides a Counter<TMicro, uint32_t> interface. Steve _______________________________________________ Tinyos-help mailing list [email protected] https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
