-
Sep 27th, 2004, 10:34 AM
#1
Thread Starter
Banned
Timer1.Interval = 30000 ,, is this 30 seconds???
does this mean 30 seconds ,
would this mean 1 minute
Timer1.Interval = 600000
-
Sep 27th, 2004, 10:40 AM
#2
1 second = 1000ms
1 minute = 60 * 1000
60000.
casey.
-
Sep 27th, 2004, 03:53 PM
#3
yes it is, now please add reosolved to your thread title.
Also 600000 is 10 minutes, 60000 is one minute,
-
Sep 27th, 2004, 03:57 PM
#4
Originally posted by thegreatone
... Also 600000 is 10 minutes ...
Ordinary timer control can have max interval of 60000 ms (1 minute).
-
Sep 27th, 2004, 04:06 PM
#5
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/
-
Sep 27th, 2004, 04:11 PM
#6
For majority applications VB's Timer control is just fine.
For more presize time calculations there is a GetTickCount API function.
-
Sep 27th, 2004, 04:35 PM
#7
My point exactly... I just illustrated a point where of use where it cant be used...
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
|