Re: System.Timer!



Vai2000,

I would to this. I would set up first a small timer (meaning a small
interval) and then at this timer activation, I would check the datetime.now
and by then set up another time with a bigger interval that would reach the
desired time you want. Using this approach, even that the service is stopped
and then re-started again, it would correct the timer to fire at the right
time.


--
Regards,
Robson Siqueira
Enterprise Architect
"Vai2000" <nospam@xxxxxxxxxxxxx> wrote in message
news:eqVYTQyOHHA.4992@xxxxxxxxxxxxxxxxxxxxxxx
Hi All, I have a Win Svc (.net) running on my server. At midnight I need
to
do some manipulations....how can I invoke a timer at midnight?
Right now I have plugged in the ElapsedEvent which is being called every
30
seconds inside it I check for datetime whether its midnight or not...

Kindly throw some smart suggestions!!!


TIA




.



Relevant Pages

  • Re: crossposting
    ... county spelling bee, meaning that each time the 15-second timer went ... off I was one of the people circling ...
    (soc.motss)
  • Re: System Viewer (WindView) vs. ProfileScope vs. SpyLib
    ... I will read more on "spy task". ... meaning the ... timer is set to give out a semaphore at 0.01 second for the application ...
    (comp.os.vxworks)
  • Re: A Tk window
    ... Then the Tk.mainloop keeps ticking, meaning you have to then slice up your outer algorithm and put it in a timer, etc. etc.!! ...
    (comp.lang.ruby)