;;; 7/18/2001 Alexander Repenning ;;; 12/07/08 Clozure CL ;;; Micro Second Timer ;;; works for intel macs ;;; Hemlock Editor Extension: Ctrl-x Ctrl-t will show the time is takes to compute the ;;; current form selected in an editor buffer. Time is in micro seconds ;;; unlike a previous version of this code called hires timer, code will be executed ;;; only once. (in-package :hemlock) (export '(time-to-run)) (eval-when (:compile-toplevel :load-toplevel :execute) (ccl:use-interface-dir :carbon) (ccl:open-shared-library "/System/Library/Frameworks/Carbon.framework/Carbon")) (eval-when (:compile-toplevel :load-toplevel :execute) (defmacro TIME-TO-RUN (&body Form) " in: &body Form {t}. Measure the time is takes to run