Time Remaining [Resolved]
Can't seem to get my head around the 'maths' involved in this. I'm doing some file operations, of a particular file operation I know what the total size is, I know what the current size is, I know the percentage if need be (the progress) and also time elapsed, what calculation do I need to get the estimated time remaining?
Two varibles, TotalSize & CurrentPosistion, hold the total file size and current posistion.
Code:
'I get percentage like this
CurrentPosistion * 100 / TotalSize
Using Environment.TickCount I have another varible that hold a count of time past since I started counting.
Code:
'I get time elapsed like this
(ElapseTime \ 60).ToString("00") & "." & (ElapseTime Mod 60).ToString("00")
So, like I say, I have current posistion, total posistion, current percentage and time elapsed, I can't quite get the calculation for estimated time remaining.
Can anyone help?