|
-
Oct 16th, 2006, 09:16 PM
#1
Thread Starter
Fanatic Member
[RESOLVED] run code every specified time
hi guys! i have a program that check the current time and compare it to time specified by the user but i want to perform the checking every once in a while for example every 5 minutes..can anybody please tell me on how to do this. Thanks in advance!
-
Oct 16th, 2006, 09:19 PM
#2
Thread Starter
Fanatic Member
Re: run code every specified time
I got it i have to use Timer right? or is there anny better way?
-
Oct 17th, 2006, 11:32 AM
#3
Re: run code every specified time
 Originally Posted by daimous
I got it i have to use Timer right? or is there anny better way?
A timer is a good idea.
Another good idea is to calculate the time difference between DateTime.Now and the specified time and set the Interval according to the result
"I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
My Blog
-
Oct 18th, 2006, 06:03 AM
#4
Thread Starter
Fanatic Member
Re: run code every specified time
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|