lisp/gnus/gnus-int.el (gnus-backend-trace): Also note the elapsed seconds
This commit is contained in:
committed by
Katsumi Yamaoka
parent
2944d406db
commit
24d0bb6be2
@@ -8,6 +8,7 @@
|
||||
for reuse.
|
||||
(gnus-open-server): Use it to add more tracing.
|
||||
(gnus-finish-retrieve-group-infos): Add backend tracing.
|
||||
(gnus-backend-trace): Also note the elapsed seconds.
|
||||
|
||||
2012-12-22 Philipp Haselwarter <philipp@haselwarter.org>
|
||||
|
||||
|
||||
@@ -252,9 +252,14 @@ If it is down, start it up (again)."
|
||||
(defun gnus-backend-trace (type form)
|
||||
(with-current-buffer (get-buffer-create "*gnus trace*")
|
||||
(buffer-disable-undo)
|
||||
(goto-char (point-max))
|
||||
(insert (format-time-string "%H:%M:%S")
|
||||
(format " %s %S\n" type form))))
|
||||
(goto-char (point-max))
|
||||
(insert (format-time-string "%H:%M:%S")
|
||||
(format " %.2fs %s %S\n"
|
||||
(if (numberp gnus-backend-trace)
|
||||
(- (float-time) gnus-backend-trace)
|
||||
0)
|
||||
type form))
|
||||
(setq gnus-backend-trace (float-time))))
|
||||
|
||||
(defun gnus-open-server (gnus-command-method)
|
||||
"Open a connection to GNUS-COMMAND-METHOD."
|
||||
|
||||
Reference in New Issue
Block a user