[Tinyos-devel] LocalTime interface
Andreas Koepke
koepke at tkn.tu-berlin.de
Mon Dec 3 06:05:27 PST 2007
But how do I call LocalTime.get() on this component? It will reduce the
value back to 32 bit...
Miklos Maroti:
> Hi Andreas,
>
> Use TransformCounterC to get a 64-bit counter, then write your
> version of localtime similar to CounterToLocalTimeC. All this
> is from lib/timer. (Or you would easily do this by hand and
> with a periodic timer that gets executed at least once at every
> 0.75 days to notice that you are close to overflow on the 32-bit
> integer).
>
> Best,
> Miklos
>
> On Dec 3, 2007 2:49 PM, Andreas Koepke <koepke at tkn.tu-berlin.de> wrote:
>> Hi guys, I'm experimenting a little with synchronization and use the
>> 32kHz clock for this. Unfortunately, the LocalTime interface is only 32
>> bit wide, so that I have to handle clock wraps every 1.5 days. What
>> would be the best way to introduce a 64 bit wide LocalTime interface?
>>
>> Best regards, Andreas
>>
>> _______________________________________________
>> Tinyos-devel mailing list
>> Tinyos-devel at Millennium.Berkeley.EDU
>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-devel
>>
>
More information about the Tinyos-devel
mailing list