Function: frame-use-time

frame-use-time is a byte-compiled function defined in frame.el.gz.

Signature

(frame-use-time &optional FRAME)

Documentation

Return FRAME's last use time.

The result is the highest window-use-time of any window on FRAME. If optional FRAME is nil, use the selected frame.

View in manual

Probably introduced at or before Emacs version 31.1.

Source Code

;; Defined in /usr/src/emacs/lisp/frame.el.gz
(defun frame-use-time (&optional frame)
  "Return FRAME's last use time.
The result is the highest `window-use-time' of any window on FRAME.  If
optional FRAME is nil, use the selected frame."
  (let ((time 0))
    (walk-window-tree
     (lambda (window)
       (setq time (max time (window-use-time window))))
     frame)
    time))