|
-
Dec 3rd, 2010, 09:31 PM
#1
Thread Starter
Fanatic Member
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.
-
Dec 3rd, 2010, 10:02 PM
#2
Thread Starter
Fanatic Member
Re: Estimated time left?
Ok... heres a Q...
vb Code:
Dim timeleft As Integer timeleft = 100 - RadProgressBar1.Value1 * 2592 / 60 / 60
(value is 91)
should come out to: 6.48
HOWEVER, debug says: 34
....
-
Dec 3rd, 2010, 10:14 PM
#3
Thread Starter
Fanatic Member
Re: Estimated time left?
nm..i got it. i had to break it down more for the computer.
-
Dec 4th, 2010, 07:31 AM
#4
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?
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
|