[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how do you time the execution of a form?
From: |
Ludovic Courtès |
Subject: |
Re: how do you time the execution of a form? |
Date: |
Fri, 30 Nov 2007 09:57:50 +0100 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) |
Hi,
"Marco Maggi" <address@hidden> writes:
> is there a procedure that prints the execution time of a form?
> Something like:
>
> (time-this (the-form) 1000)
> ;; run (the-form) 1000 times and prints the result
In Guile-Library, there's `(debugging time)', which exports `time', a
macro that does exactly what you want.
Thanks,
Ludovic.