emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 9cb2cb9: emacs-init-time outputs more digits now


From: Paul Eggert
Subject: [Emacs-diffs] master 9cb2cb9: emacs-init-time outputs more digits now
Date: Mon, 18 Feb 2019 02:17:42 -0500 (EST)

branch: master
commit 9cb2cb97253b49f2c469981055571b2afbcd60df
Author: Paul Eggert <address@hidden>
Commit: Paul Eggert <address@hidden>

    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.
---
 lisp/time.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/time.el b/lisp/time.el
index d95f708..9084217 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\"."
   "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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]