Joerg Arndt on Mon, 03 Apr 2006 08:32:58 +0200


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: elapsed time and system command


* cino hilliard <hillcino368@hotmail.com> [Apr 02. 2006 16:44]:
> Hi,
> [...]

> 
> The timing functions # and ## do not account for the time taken by calls to 
> external objects.
> For example,
> 
> (01:06) gp > #
>   timer = 1 (on)
> (01:05) gp > t(n) = for(x=1,n,write("testtimer.txt","12345678901"))
> (01:07) gp > t(100000)
> time = 10,891 ms.
> (01:08) gp > ##
>  ***   last result computed in 10,891 ms.
> 
> Actually took 50 sec.
> 
> This has been the case for some time and applies to system commands also.
> 

If timing would return wall clock time, it would be next to
meaningless, i.e. depend on system load.
Please keep it the way it is!

-- 
p=2^q-1 prime <== q>2, cosh(2^(q-2)*log(2+sqrt(3)))%p=0
Life is hard and then you die.