Re: Calculate Time Remaining
Quote:
Originally posted by Barguast
This isn't specifically a VB problem, but I'm sure someone here can answer it.
I need to estimate the time remaining for a process. The variables which I want to calculate it with are the completion ratio (0 - 1), and the time that has elapsed since the process began.
From this I should be able to calculate how many more seconds remain, right? Well I don't know the maths of it, so can anyone help me out?
well the question is sufficiently vague :D
If you are looping i = 1 to 1000 you could calculate percent complete as i/1000 and use the system time to track seconds/minutes/etc
That what you mean?