mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-29 07:58:28 +00:00
(emacs-uptime, emacs-init-time): Use float-time rather than time-to-seconds.
This commit is contained in:
parent
a68366f4da
commit
0d00c61c12
@ -560,7 +560,7 @@ For example, the Unix uptime command format is \"%D, %z%2h:%.2m\"."
|
||||
(interactive)
|
||||
(let ((str
|
||||
(format-seconds (or format "%Y, %D, %H, %M, %z%S")
|
||||
(time-to-seconds
|
||||
(float-time
|
||||
(time-subtract (current-time) before-init-time)))))
|
||||
(if (interactive-p)
|
||||
(message "%s" str)
|
||||
@ -572,7 +572,7 @@ For example, the Unix uptime command format is \"%D, %z%2h:%.2m\"."
|
||||
(interactive)
|
||||
(let ((str
|
||||
(format "%.1f seconds"
|
||||
(time-to-seconds
|
||||
(float-time
|
||||
(time-subtract after-init-time before-init-time)))))
|
||||
(if (interactive-p)
|
||||
(message "%s" str)
|
||||
|
Loading…
Reference in New Issue
Block a user