diff options
| author | Paul Eggert | 2019-02-17 23:17:12 -0800 |
|---|---|---|
| committer | Paul Eggert | 2019-02-17 23:17:37 -0800 |
| commit | 9cb2cb97253b49f2c469981055571b2afbcd60df (patch) | |
| tree | a1c71b02d60844d28938d2d330b3f94ea3467a03 | |
| parent | 43f6fd434dd23fa7202ba95bd1cc3f41234ad609 (diff) | |
| download | emacs-9cb2cb97253b49f2c469981055571b2afbcd60df.tar.gz emacs-9cb2cb97253b49f2c469981055571b2afbcd60df.zip | |
emacs-init-time outputs more digits now
* 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.
| -rw-r--r-- | lisp/time.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/time.el b/lisp/time.el index d95f708161c..9084217024a 100644 --- a/lisp/time.el +++ b/lisp/time.el | |||
| @@ -582,7 +582,7 @@ For example, the Unix uptime command format is \"%D, %z%2h:%.2m\"." | |||
| 582 | "Return a string giving the duration of the Emacs initialization." | 582 | "Return a string giving the duration of the Emacs initialization." |
| 583 | (interactive) | 583 | (interactive) |
| 584 | (let ((str | 584 | (let ((str |
| 585 | (format "%.1f seconds" | 585 | (format "%s seconds" |
| 586 | (float-time | 586 | (float-time |
| 587 | (time-subtract after-init-time before-init-time))))) | 587 | (time-subtract after-init-time before-init-time))))) |
| 588 | (if (called-interactively-p 'interactive) | 588 | (if (called-interactively-p 'interactive) |