1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-05 11:45:45 +00:00

* allout-widgets.el (allout-elapsed-time-seconds): Use float-time.

This commit is contained in:
Paul Eggert 2011-06-30 17:11:50 -07:00
parent 34d0a92369
commit 35837f519e
2 changed files with 5 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2011-07-01 Paul Eggert <eggert@cs.ucla.edu>
* allout-widgets.el (allout-elapsed-time-seconds): Use float-time.
2011-06-30 Lars Magne Ingebrigtsen <larsi@gnus.org>
* textmodes/flyspell.el (flyspell-word): Consider words that

View File

@ -2324,9 +2324,7 @@ We use a caching strategy, so the caller doesn't need to do so."
(defun allout-elapsed-time-seconds (end start)
"Return seconds between `current-time' style time START/END triples."
(let ((elapsed (time-subtract end start)))
(+ (* (car elapsed) (expt 2.0 16))
(cadr elapsed)
(/ (caddr elapsed) (expt 10.0 6)))))
(float-time elapsed)))
;;;_ > allout-frame-property (frame property)
(defalias 'allout-frame-property
(cond ((fboundp 'frame-parameter)