[Tinyos-help] Fwd: Timer-SysTimeC in TinyOs-2.X
David Gay
dgay42 at gmail.com
Wed Nov 1 09:45:53 PST 2006
On 11/1/06, Osman Ugus <ugus at netlab.nec.de> wrote:
> Hello,
>
> I am implementing ECC Arithmetic on micaz motes with tinyOS-2.X. I want
> to mesasure the timing efficiency of my methods. I want to get the time
> just before calling the method and just after finishing the method.
>
> There was a component called SysTimeC in tinyOs-1.x and I think that
> could be used for my purpose, but SysTimeC does not exist in tinyOs-2.X
> any more.
>
> Which component should I use in tinyOs-2.X to be able to get as much
> precision as by using SysTimeC in tinyOs-1.X.
>
> Thanks a lot for your help
I was going to suggest CounterMicro32C, which isn't guaranteed to
exist on all platforms. It turns out it doesn't exist on msp430-based
platforms ;-) (though it would be fairly easy to add I think, based on
Msp430CounterMicroC). It does exist on mica family platforms.
Note that on mica motes, CounterMicro32C stops counting while the mote
is asleep (otherwise the mote wouldn't be able to sleep ;-)). Also
it's not exactly counting microseconds (mica's run at 7.XX MHz, so the
time unit for CounterMicro32C is 7.XX/8 us).
David Gay
More information about the Tinyos-help
mailing list