On 12. May, 2009, at 6:54 AM, Robert Dodier wrote:
> On 5/11/09, ?iga Lenar?i? <ziga.lenarcic at gmail.com> wrote:
>
>> If any of the developers would include this function into maxima cvs,
>> it would be very nice! (It's documented, small and works nicely.)
>
> I've looked over timing.lisp and it seems OK to me to include it.
> Although there exist other timing functions, it is a little clumsy
> to get just the time to evaluate one expression, so I think timing
> (...)
> fills a gap.
I think it is a bit orthogonal to timer() and friends - namely I use
$timing for automatic timing of a single function while perhaps
changing some dimension parameter of that function. Timer() seem
useful if you have a larger program and want to find out how many
times certain functions are called during execution. $timing is the
same as 'showtime' but allows for making lists of timings or other
programatic things.
> If it does get imported, it need to have a copyright (by the author)
> and license statement (GPL with unspecified version, since that's the
> license stated by Bill Schelter).
These rules are not very clear to me ... If I understand correctly,
$timing has to be put into a separate file in src with my copyright?
Is it possible to include $timing into existing src files (next to
$timer and friends) perhaps with a short copyright notice (if that's
needed)?
If it has to be a separate file, then perhaps it's best I finish the
larger $table function, and put both $table and $timing into a single
file? I don't want to pollute the src with single function lisp files...
Anyway thanks for your response..
>
> best
>
> Robert Dodier
Regards,
Ziga Lenarcic