Function: eca-chat--tool-call-elapsed-start
eca-chat--tool-call-elapsed-start is a natively compiled function
defined in eca-chat.el.
Signature
(eca-chat--tool-call-elapsed-start ID)
Documentation
Start tracking elapsed time for tool call ID.
Records current time (only on first call for ID) and ensures the shared update timer is running.
Source Code
;; Defined in /nix/store/jklqzw6pzz6j4jrbv8wy0iwgi7jlrbld-emacs-packages-deps/share/emacs/site-lisp/elpa/eca-20260928.1827/eca-chat.el
(defun eca-chat--tool-call-elapsed-start (id)
"Start tracking elapsed time for tool call ID.
Records current time (only on first call for ID) and ensures the shared
update timer is running."
(unless (gethash id eca-chat--tool-call-elapsed-times)
(puthash id (current-time) eca-chat--tool-call-elapsed-times))
(unless eca-chat--tool-call-elapsed-timer
(let ((buf (current-buffer))
(timer nil))
(setq timer
(run-with-timer
1 1
(lambda ()
(if (buffer-live-p buf)
(with-current-buffer buf
(eca-chat--tool-call-elapsed-tick))
;; Buffer was killed — cancel ourselves to avoid leak
(cancel-timer timer)))))
(setq eca-chat--tool-call-elapsed-timer timer))))