Hi

I want to do something each minute, but it needs to be synch to Local
or system time
If I do:
SetTimer(hWnd, 1, 60000, TimerProc);
it will not be synch to the local time on PPC :-(

do you have a solution ?

thanks in advance
Lotfi

Re: start timer synchronized with system time or use systemtime events by ctacke/>

ctacke/>
Sun Sep 17 16:14:54 CDT 2006

Si it needs to be synced with when the minute rolls? The only thing I can
think is to get the current time, determine how long it is until the next
roll and then set a timer based on that math.


--
Chris Tacke
OpenNETCF Consulting
Managed Code in the Embedded World
www.opennetcf.com
--



<blotfib@gmail.com> wrote in message
news:1158506228.212569.225740@e3g2000cwe.googlegroups.com...
> Hi
>
> I want to do something each minute, but it needs to be synch to Local
> or system time
> If I do:
> SetTimer(hWnd, 1, 60000, TimerProc);
> it will not be synch to the local time on PPC :-(
>
> do you have a solution ?
>
> thanks in advance
> Lotfi
>



Re: start timer synchronized with system time or use systemtime events by blotfib

blotfib
Sun Sep 17 17:20:40 CDT 2006


<ctacke/> a =E9crit :

> Si it needs to be synced with when the minute rolls? The only thing I can
> think is to get the current time, determine how long it is until the next
> roll and then set a timer based on that math.
>
thank for answer,

but I can not do it every min !
otherwise there will be a drift...
:(


Re: start timer synchronized with system time or use systemtime events by blotfib

blotfib
Sun Sep 17 18:06:07 CDT 2006


<ctacke/> a =E9crit :

> Si it needs to be synced with when the minute rolls? The only thing I can
> think is to get the current time, determine how long it is until the next
> roll and then set a timer based on that math.
>
thank for answer,

but I can not do it every min !
otherwise there will be a drift...
:(


Re: start timer synchronized with system time or use systemtime events by ctacke/>

ctacke/>
Sun Sep 17 21:17:43 CDT 2006

With testing you might be able to find out how often you need to reverify.
If strict accuracy is key then you need a hardware solution.

-Chris

<blotfib@gmail.com> wrote in message
news:1158531640.441127.301720@e3g2000cwe.googlegroups.com...

<ctacke/> a écrit :

> Si it needs to be synced with when the minute rolls? The only thing I can
> think is to get the current time, determine how long it is until the next
> roll and then set a timer based on that math.
>
thank for answer,

but I can not do it every min !
otherwise there will be a drift...
:(