Hi,

On Fri 30 Nov 2007 09:57, [EMAIL PROTECTED] (Ludovic Courtès) writes:

> "Marco Maggi" <[EMAIL PROTECTED]> 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.

Docs for that form: http://home.gna.org/guile-lib/doc/ref/debugging.time/

Also, as it turns out (of course I only knew this after I added time to
guile-lib), there is (ice-9 time):

;;; Commentary:

;; This module exports a single macro: `time'.
;; Usage: (time exp)
;;
;; Example:
;; guile> (time (sleep 3))
;; clock utime stime cutime cstime gctime
;; 3.01  0.00  0.00   0.00   0.00   0.00
;; 0

Regards,

Andy
-- 
http://wingolog.org/


_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-user

Reply via email to