471,306 Members | 1,291 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,306 software developers and data experts.

Doubts related to server based timer

Hi all,

I want to clear one doubt which i am facing regarding timer.

Suppose i have one timer in which i am generating some files. and
interval of my timer is say 5 min.

Say suppose at then my files are generated at time 12:30 am and then
as i set interval to 5 next file should gets generated to 12:35 but
what if i change my system time to 12:25 or 12:34.

So will my timer gets affected and if i reset timer to 12:32 at 12:30
will my files get generated at 12:37 or as 12:35.

Please clear my doubts.

Thanks in advance.

Feb 20 '06 #1
1 1297
Hi,

"archana" <tr**************@yahoo.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
Hi all,

I want to clear one doubt which i am facing regarding timer.

Suppose i have one timer in which i am generating some files. and
interval of my timer is say 5 min.

Say suppose at then my files are generated at time 12:30 am and then
as i set interval to 5 next file should gets generated to 12:35 but
what if i change my system time to 12:25 or 12:34.

So will my timer gets affected and if i reset timer to 12:32 at 12:30
will my files get generated at 12:37 or as 12:35.

Please clear my doubts.


Did you try to run it ? The above questions can be easily answered by doing
that test.

I think that the timer works with an offset , it does't really care about
the time in the system but about a given number of miliseconds from the time
you started running it.
Again, a simple test will tel you how it does work in reality.
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
Feb 20 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by MS | last post: by
3 posts views Thread by archana | last post: by
2 posts views Thread by archana | last post: by
10 posts views Thread by archana | last post: by
2 posts views Thread by =?Utf-8?B?Sm9obg==?= | last post: by
1 post views Thread by =?Utf-8?B?Sm9obg==?= | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.