Home All Groups Group Topic Archive Search About

timer start at specific time

Author
10 Jul 2006 10:01 PM
martin1
All,

timer interval is 60 sec, i want ot set up timer start 15 sec later after
minute. for example if current time is 2:30:00, the timer starts 2:30:15,
then timer loop procedure every minute like 2:31:15, 2:32:15, 2:33:15.., can
anyone help this out? Thanks

Author
10 Jul 2006 10:57 PM
Tiago Salgado
One way to do that is having 2 timers. In the first one, you set the tim=
er  =

to 15 seconds... and the other to 60 seconds. Set the 2nd timer do  =

Disable, and Enable only when the first timer fire...

Time1.Interval =3D 15 seconds
Timer2.Interval =3D 60 seconds
Timer2.Enabled =3D False

When Timer1 activates... u set:

Timer2.Enabled =3D True
Timer1.Enabled =3D False


On Mon, 10 Jul 2006 23:01:02 +0100, martin1  =

<mart***@discussions.microsoft.com> wrote:

> All,
>
> timer interval is 60 sec, i want ot set up timer start 15 sec later af=
ter
> minute. for example if current time is 2:30:00, the timer starts 2:30:=
15,
> then timer loop procedure every minute like 2:31:15, 2:32:15, 2:33:15.=
..,  =

> can
> anyone help this out? Thanks



-- =

Tiago Salgado
http://www.foruns.org
Author
13 Jul 2006 1:37 PM
martin1
Hi, My question is set up timer start 15 sec past minute. It always start 15
sec past minute. For example, if current time is 8:30:45, the timer starts on
8:31:15 am; if current time is 8:00:00, the timer starts on 8:00:15; if
current time is 8:55:15, the timer starts on 8:55:15, if current time is
8:59:00, the timer starts on 8:59:15 ...

Anyway timer always starts 15 seconds  past minute, any more advice?

Thanks

Show quoteHide quote
"Tiago Salgado" wrote:

> One way to do that is having 2 timers. In the first one, you set the timer 
> to 15 seconds... and the other to 60 seconds. Set the 2nd timer do 
> Disable, and Enable only when the first timer fire...
>
> Time1.Interval = 15 seconds
> Timer2.Interval = 60 seconds
> Timer2.Enabled = False
>
> When Timer1 activates... u set:
>
> Timer2.Enabled = True
> Timer1.Enabled = False
>
>
> On Mon, 10 Jul 2006 23:01:02 +0100, martin1 
> <mart***@discussions.microsoft.com> wrote:
>
> > All,
> >
> > timer interval is 60 sec, i want ot set up timer start 15 sec later after
> > minute. for example if current time is 2:30:00, the timer starts 2:30:15,
> > then timer loop procedure every minute like 2:31:15, 2:32:15, 2:33:15..., 
> > can
> > anyone help this out? Thanks
>
>
>
> --
> Tiago Salgado
> http://www.foruns.org
>