(gnus-backend-trace): Also not the elapsed seconds.
authorLars Ingebrigtsen <larsi@gnus.org>
Sun, 23 Dec 2012 14:44:06 +0000 (15:44 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Sun, 23 Dec 2012 14:44:06 +0000 (15:44 +0100)
lisp/ChangeLog
lisp/gnus-int.el

index 24aa9e9..5a91b08 100644 (file)
@@ -4,6 +4,7 @@
        for reuse.
        (gnus-open-server): Use it to add more tracing.
        (gnus-finish-retrieve-group-infos): Add backend tracing.
+       (gnus-backend-trace): Also not the elapsed seconds.
 
 2012-12-22  Philipp Haselwarter <philipp@haselwarter.org>
 
index b692299..ea887b2 100644 (file)
@@ -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."