projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
43f6fd4
)
emacs-init-time outputs more digits now
author
Paul Eggert
<eggert@cs.ucla.edu>
Mon, 18 Feb 2019 07:17:12 +0000
(23:17 -0800)
committer
Paul Eggert
<eggert@cs.ucla.edu>
Mon, 18 Feb 2019 07:17:37 +0000
(23:17 -0800)
* lisp/time.el (emacs-init-time): Output more digits;
formerly this was always outputting "0.0 seconds" for me
because the number of seconds was less than 0.1.
lisp/time.el
patch
|
blob
|
history
diff --git
a/lisp/time.el
b/lisp/time.el
index d95f708161cafd4c658713d14c1d95f9171e91c8..9084217024a47422a6e4a1f57eaa5d2f0637c5c4 100644
(file)
--- a/
lisp/time.el
+++ b/
lisp/time.el
@@
-582,7
+582,7
@@
For example, the Unix uptime command format is \"%D, %z%2h:%.2m\"."
"Return a string giving the duration of the Emacs initialization."
(interactive)
(let ((str
- (format "%
.1f
seconds"
+ (format "%
s
seconds"
(float-time
(time-subtract after-init-time before-init-time)))))
(if (called-interactively-p 'interactive)