does this mean 30 seconds ,
would this mean 1 minute
Timer1.Interval = 600000
Printable View
does this mean 30 seconds ,
would this mean 1 minute
Timer1.Interval = 600000
1 second = 1000ms
1 minute = 60 * 1000
60000.
casey.
yes it is, now please add reosolved to your thread title.
Also 600000 is 10 minutes, 60000 is one minute,
Ordinary timer control can have max interval of 60000 ms (1 minute).Quote:
Originally posted by thegreatone
... Also 600000 is 10 minutes ...
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:
http://ccrp.mvps.org/
For majority applications VB's Timer control is just fine.
For more presize time calculations there is a GetTickCount API function.
My point exactly... I just illustrated a point where of use where it cant be used...