]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/emacs-lisp/benchmark.el (benchmark-elapse): Tweak
authorStefan Monnier <monnier@iro.umontreal.ca>
Fri, 11 Jun 2021 18:06:29 +0000 (14:06 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Fri, 11 Jun 2021 18:06:29 +0000 (14:06 -0400)
lisp/emacs-lisp/benchmark.el

index 439d3bd363edefadb72f5fdb9a1cea572f882ee6..64c628822df20b83911c671e4c455364907f164a 100644 (file)
@@ -37,8 +37,7 @@
   "Return the time in seconds elapsed for execution of FORMS."
   (declare (indent 0) (debug t))
   (let ((t1 (make-symbol "t1")))
-    `(let (,t1)
-       (setq ,t1 (current-time))
+    `(let ((,t1 (current-time)))
        ,@forms
        (float-time (time-since ,t1)))))