Results 1 to 4 of 4

Thread: Estimated time left?

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2007
    Posts
    520

    Estimated time left?

    So, I have a unique situation... and although this feature is 'optional'..i'd still like to see it.

    I have a program that reads from a database...

    the database pulls its info from a site.

    it measures in 0 to 100 (%).

    I know it takes 3 days (i dont know if its EXACTLY 72hrs)..to get to 100%.

    Currently, i have a progressbar to read from the database field..which is the value.

    I'd like to 'estimate' the time left before it reaches 100...

    Is there a math formula for that?

    thanks.

  2. #2

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2007
    Posts
    520

    Re: Estimated time left?

    Ok... heres a Q...

    vb Code:
    1. Dim timeleft As Integer
    2.             timeleft = 100 - RadProgressBar1.Value1 * 2592 / 60 / 60

    (value is 91)

    should come out to: 6.48

    HOWEVER, debug says: 34

    ....

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2007
    Posts
    520

    Re: Estimated time left?

    nm..i got it. i had to break it down more for the computer.

  4. #4
    Powered By Medtronic dbasnett's Avatar
    Join Date
    Dec 2007
    Location
    Jefferson City, MO
    Posts
    9,897

    Re: Estimated time left?

    "... ..which is the value." means??? If you were reading a file or DB from start to end, and knew the total size the estimate of time remaining would be a simple matter, but that isn't what you are doing is it?
    My First Computer -- Documentation Link (RT?M) -- Using the Debugger -- Prime Number Sieve
    Counting Bits -- Subnet Calculator -- UI Guidelines -- >> SerialPort Answer <<

    "Those who use Application.DoEvents have no idea what it does and those who know what it does never use it." John Wein

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