I usually approach this sort of problem using differences rather than
setting the source. Say you get a time from your GPS, then you get the
current ticks that corresponds to your reference. Then subsequent calls to
get the current ticks will tell you how many ticks you are from your
reference. You define which ticks are in which second.

Matt

----- Original Message -----
From: "Peter Epstein" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Monday, May 06, 2002 8:17 PM
Subject: RE: ticks time vs. secs time


> I don't think you'd want the tick clock to be reset when you set the time
of
> day clock. Applications can rely on the fact that the tick clock only ever
> increases (although it will eventually wrap around). I don't even think
> you'd want to tweak the duration of one of the ticks in order to align the
> tick clock with the time of day clock (so the tick clock advances every
time
> the time of day clock advances, and at precisely the same moment). So,
> you're stuck with independent clocks that advance at the same rate
assuming
> the time of day is not set and assuming the device stays on.
> --
> Peter Epstein
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
>
>


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to