PC Review


Reply
Thread Tools Rate Thread

Calculating Estimated time?

 
 
Lars Netzel
Guest
Posts: n/a
 
      25th Jun 2004
Hello!

I have a number of files to copy. I have to total Amount of files and the
Total FileSize of this operation (for example 3453 files, 4065.4 Mb)... How
can I calculate how much time this will take so the user have an Idea of how
much time it will take to copy? This will also be something to base a
progressbar on.

regards
/Lars


 
Reply With Quote
 
 
 
 
One Handed Man \( OHM - Terry Burns \)
Guest
Posts: n/a
 
      25th Jun 2004
Low long is a peice of string ?

This will depend on the server the files are being copied from and to, the
speed of the network, how congested it is.

As a rule of thum, measure the time for a 5GB file transfer on a busy day
and use that as a guide.

Regards

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .

Time flies when you don't know what you're doing

"Lars Netzel" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hello!
>
> I have a number of files to copy. I have to total Amount of files and the
> Total FileSize of this operation (for example 3453 files, 4065.4 Mb)...

How
> can I calculate how much time this will take so the user have an Idea of

how
> much time it will take to copy? This will also be something to base a
> progressbar on.
>
> regards
> /Lars
>
>



 
Reply With Quote
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      25th Jun 2004
* "Lars Netzel" <(E-Mail Removed)> scripsit:
> I have a number of files to copy. I have to total Amount of files and the
> Total FileSize of this operation (for example 3453 files, 4065.4 Mb)... How
> can I calculate how much time this will take so the user have an Idea of how
> much time it will take to copy? This will also be something to base a
> progressbar on.


IMO, that's not as easy. Windows provides this information and it's (at
least on my machine) always not accurate. When copying from HDD to HDD,
speed strongly depends on how fragmented the files are, so there is no
constant copying speed. You could, for example, calculate the current
time needed to copy 1 MB and then calculate how long the rest will take,
but if the copying speed decreases, the result can change quickly.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
 
Reply With Quote
 
Jay B. Harlow [MVP - Outlook]
Guest
Posts: n/a
 
      25th Jun 2004
Lars,
In addition to the others comments, I would use a "sliding" average...

I would start assuming I am copying x bytes/minute and display the estimated
time based on that.

For each y KB I copy I would time how long those KB took, giving me a new x
bytes/minute, allowing me to display a new estimated time based on the new x
bytes/minute...

Hope this helps
Jay

"Lars Netzel" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hello!
>
> I have a number of files to copy. I have to total Amount of files and the
> Total FileSize of this operation (for example 3453 files, 4065.4 Mb)...

How
> can I calculate how much time this will take so the user have an Idea of

how
> much time it will take to copy? This will also be something to base a
> progressbar on.
>
> regards
> /Lars
>
>



 
Reply With Quote
 
Lars Netzel
Guest
Posts: n/a
 
      26th Jun 2004
yeah, that makes sence!

Thanx
/Lars

"Jay B. Harlow [MVP - Outlook]" <(E-Mail Removed)> skrev i meddelandet
news:(E-Mail Removed)...
> Lars,
> In addition to the others comments, I would use a "sliding" average...
>
> I would start assuming I am copying x bytes/minute and display the

estimated
> time based on that.
>
> For each y KB I copy I would time how long those KB took, giving me a new

x
> bytes/minute, allowing me to display a new estimated time based on the new

x
> bytes/minute...
>
> Hope this helps
> Jay
>
> "Lars Netzel" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > Hello!
> >
> > I have a number of files to copy. I have to total Amount of files and

the
> > Total FileSize of this operation (for example 3453 files, 4065.4 Mb)...

> How
> > can I calculate how much time this will take so the user have an Idea of

> how
> > much time it will take to copy? This will also be something to base a
> > progressbar on.
> >
> > regards
> > /Lars
> >
> >

>
>



 
Reply With Quote
 
tanuki
Guest
Posts: n/a
 
      28th Jun 2004
sorry for my stupidity but isn't it just a simple case of

speed=distance/time
thus
speed = totalfilesize/time

or sumthing

and then as you copy more bites you modify the formula

speed=(totalbytescopied)/(totaltimeittooksofar)

i don't know if this will work correctly but it will definitly vary between
say
a gig of small files, a one gig file and say 12 files comprising 1 gig in
total




"Lars Netzel" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> yeah, that makes sence!
>
> Thanx
> /Lars
>
> "Jay B. Harlow [MVP - Outlook]" <(E-Mail Removed)> skrev i

meddelandet
> news:(E-Mail Removed)...
> > Lars,
> > In addition to the others comments, I would use a "sliding" average...
> >
> > I would start assuming I am copying x bytes/minute and display the

> estimated
> > time based on that.
> >
> > For each y KB I copy I would time how long those KB took, giving me a

new
> x
> > bytes/minute, allowing me to display a new estimated time based on the

new
> x
> > bytes/minute...
> >
> > Hope this helps
> > Jay
> >
> > "Lars Netzel" <(E-Mail Removed)> wrote in message
> > news:(E-Mail Removed)...
> > > Hello!
> > >
> > > I have a number of files to copy. I have to total Amount of files and

> the
> > > Total FileSize of this operation (for example 3453 files, 4065.4

Mb)...
> > How
> > > can I calculate how much time this will take so the user have an Idea

of
> > how
> > > much time it will take to copy? This will also be something to base a
> > > progressbar on.
> > >
> > > regards
> > > /Lars
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
estimated time remaining KRK Windows Vista General Discussion 10 12th Apr 2009 08:57 PM
Disable estimated time Aaron Oxford Windows Vista Performance 1 11th Nov 2008 01:17 AM
Estimated scan time bug. Bob Dietz Spyware Discussion 9 13th Feb 2005 03:04 AM
Estimated time screen Spyware Announcements 3 4th Feb 2005 01:30 PM
Estimated time of arrival of SP2 =?Utf-8?B?Y2FtbWFj?= Windows XP Security 4 22nd Aug 2004 05:24 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:50 AM.