projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
87bd14c
)
* lisp/emacs-lisp/benchmark.el (benchmark-elapse): Tweak
author
Stefan Monnier
<monnier@iro.umontreal.ca>
Fri, 11 Jun 2021 18:06:29 +0000
(14:06 -0400)
committer
Stefan Monnier
<monnier@iro.umontreal.ca>
Fri, 11 Jun 2021 18:06:29 +0000
(14:06 -0400)
lisp/emacs-lisp/benchmark.el
patch
|
blob
|
history
diff --git
a/lisp/emacs-lisp/benchmark.el
b/lisp/emacs-lisp/benchmark.el
index 439d3bd363edefadb72f5fdb9a1cea572f882ee6..64c628822df20b83911c671e4c455364907f164a 100644
(file)
--- 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)))))