Results 1 to 7 of 7

Thread: Timer1.Interval = 30000 ,, is this 30 seconds???

  1. #1

    Thread Starter
    Banned
    Join Date
    Sep 2004
    Location
    uk
    Posts
    34

    Timer1.Interval = 30000 ,, is this 30 seconds???

    does this mean 30 seconds ,

    would this mean 1 minute

    Timer1.Interval = 600000

  2. #2
    Fanatic Member vbasicgirl's Avatar
    Join Date
    Jan 2004
    Location
    Manchester, UK
    Posts
    1,016
    1 second = 1000ms

    1 minute = 60 * 1000
    60000.

    casey.

  3. #3
    Frenzied Member thegreatone's Avatar
    Join Date
    Aug 2003
    Location
    Oslo, Norway. Mhz:4700 x4
    Posts
    1,333
    yes it is, now please add reosolved to your thread title.

    Also 600000 is 10 minutes, 60000 is one minute,

  4. #4
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132
    Originally posted by thegreatone
    ... Also 600000 is 10 minutes ...
    Ordinary timer control can have max interval of 60000 ms (1 minute).

  5. #5
    Next Of Kin baja_yu's Avatar
    Join Date
    Aug 2002
    Location
    /dev/root
    Posts
    5,989
    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/

  6. #6
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132
    For majority applications VB's Timer control is just fine.
    For more presize time calculations there is a GetTickCount API function.

  7. #7
    Next Of Kin baja_yu's Avatar
    Join Date
    Aug 2002
    Location
    /dev/root
    Posts
    5,989
    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
  •  



Click Here to Expand Forum to Full Width