Sep 27th, 2004, 11:34 AM
Timer1.Interval = 30000 ,, is this 30 seconds???
does this mean 30 seconds ,
would this mean 1 minute
Timer1.Interval = 600000
Sep 27th, 2004, 11:40 AM
1 second = 1000ms
1 minute = 60 * 1000
Sep 27th, 2004, 04:53 PM
yes it is, now please add reosolved to your thread title.
Also 600000 is 10 minutes, 60000 is one minute,
Sep 27th, 2004, 04:57 PM
Ordinary timer control can have max interval of 60000 ms (1 minute).
Originally posted by thegreatone
... Also 600000 is 10 minutes ...
Sep 27th, 2004, 05:06 PM
Timer is a very unreliable control..... 1000 miliseconds does not mean 1 second....its speed is determined by the CPU load, and the code that it has to perform...
The best test is to make a timer control, set interval to 1000, make a textbox and put "0" in it and have the timer do this:
Text1.Text = Int(Text1.Text) + 1
Follow the system time and whatch the incrementations... after a minute you will see a difference of a few sconds.... and the more time passes the bigger the offset gets...
I recommend using the Advanced Timer control from CCRP, it's free:
Sep 27th, 2004, 05:11 PM
For majority applications VB's Timer control is just fine.
For more presize time calculations there is a GetTickCount API function.
Sep 27th, 2004, 05:35 PM
My point exactly... I just illustrated a point where of use where it cant be used...
Click Here to Expand Forum to Full Width
Survey posted by VBForums.