From: Glenn Morris Date: Wed, 2 Sep 2009 03:21:26 +0000 (+0000) Subject: (emacs-uptime, emacs-init-time): Use float-time rather than time-to-seconds. X-Git-Tag: emacs-pretest-23.1.90~1522 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=0d00c61c1235fb9e54a8b6b4ef8cbbcc6271da83;p=emacs.git (emacs-uptime, emacs-init-time): Use float-time rather than time-to-seconds. --- diff --git a/lisp/time.el b/lisp/time.el index 1d0b951e4a4..2ff840db762 100644 --- a/lisp/time.el +++ b/lisp/time.el @@ -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)