Results 1 to 6 of 6

Thread: Time Remaining [Resolved]

Threaded View

  1. #1

    Thread Starter
    Member
    Join Date
    Sep 2002
    Posts
    53

    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?
    Last edited by JustAProg; Apr 27th, 2003 at 09:12 AM.

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