summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2021-06-11 14:06:29 -0400
committerStefan Monnier <monnier@iro.umontreal.ca>2021-06-11 14:06:29 -0400
commite775ef2f57e7889e29edbf44e6f6a2deb79d2635 (patch)
treec1f61488d2c4cbc745ced8f3a4993ada8a82dd24 /lisp/emacs-lisp
parent87bd14ca8bdecda6964aeb3c323faee846a8c1b8 (diff)
downloademacs-e775ef2f57e7889e29edbf44e6f6a2deb79d2635.tar.gz
emacs-e775ef2f57e7889e29edbf44e6f6a2deb79d2635.tar.bz2
emacs-e775ef2f57e7889e29edbf44e6f6a2deb79d2635.zip
* lisp/emacs-lisp/benchmark.el (benchmark-elapse): Tweak
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r--lisp/emacs-lisp/benchmark.el3
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/benchmark.el b/lisp/emacs-lisp/benchmark.el
index 439d3bd363e..64c628822df 100644
--- a/lisp/emacs-lisp/benchmark.el
+++ b/lisp/emacs-lisp/benchmark.el
@@ -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)))))