timing a sorting algorithm in python
<p>What i am trying to do is to time a specific array using a sorting algorithm. What i have done so far seems to just time between two array increments; however I want it to continue adding time:</p>

<pre><code>Example
n    time
500  0.0002
1000 0.0004
1500 0.0006
</code></pre>

<p>what i have is pretty much a same time interval:</p>

<pre><code>n    time
500  0.00017
1000 0.00015
1500 0.00018
</code></pre>

<p>my part of the coding is</p>

<pre><code>if sortfunction==1:
        array=x[increment-1:n:increment]
        for my in array:
            ff=sort_timehelp(x,quick_sort)
            print "%d\t %f" %(my, ff)
</code></pre>

<p>i think there is something wrong with the for loop function. Any help? thanks</p>
