<?xml version="1.0" encoding="windows-1252"?>
<node id="1010523" title="Re: Estimating computation time perl scripts" created="2012-12-27 08:02:46" updated="2012-12-27 08:02:46">
<type id="11">
note</type>
<author id="171588">
BrowserUk</author>
<data>
<field name="doctext">
&lt;blockquote&gt;&lt;i&gt;&lt;/i&gt;&lt;/blockquote&gt;
&lt;p&gt;Most every long running program contain repetition in the form of loops, or recursion, or a set of work items to be processed; and the number of repetitions are normally known, or are quickly estimable.

&lt;p&gt;If you time the first repetition and multiply by the known or first estimation of the repetition count, you can approximate the total time and derive a %complete. 

&lt;p&gt;As the time taken for each repetition can vary, you can time each successive repetition and adjust the percentage dynamically.

&lt;P&gt;You'll get better/more specific suggestions if you give us more information about the nature of your program.

&lt;div class="pmsig"&gt;&lt;div class="pmsig-171588"&gt;
&lt;hr /&gt;
&lt;font size=1 &gt;
&lt;div&gt;With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'&lt;/div&gt;
&lt;div&gt;Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.&lt;/div&gt;
&lt;div&gt;"Science is about questioning the status quo. Questioning authority". &lt;/div&gt;
&lt;div&gt;In the absence of evidence, opinion is indistinguishable from prejudice.
&lt;/div&gt;
&lt;/font&gt;

&lt;/div&gt;&lt;/div&gt;</field>
<field name="root_node">
1010516</field>
<field name="parent_node">
1010516</field>
</data>
</node>
