* lisp/emacs-lisp/benchmark.el (benchmark-elapse): Tweak

This commit is contained in:
Stefan Monnier 2021-06-11 14:06:29 -04:00
parent 87bd14ca8b
commit e775ef2f57

View 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)))))