* lisp/emacs-lisp/benchmark.el (benchmark-elapse): Tweak
This commit is contained in:
parent
87bd14ca8b
commit
e775ef2f57
1 changed files with 1 additions and 2 deletions
|
@ -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)))))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue