Function: ses--time-check

ses--time-check is a macro defined in ses.el.gz.

Signature

(ses--time-check FORMAT &rest ARGS)

Documentation

If ses-start-time is more than a second ago, call message with FORMAT and ARGS and reset ses-start-time to the current time.

Source Code

;; Defined in /usr/src/emacs/lisp/ses.el.gz
;;Split this code off into a function to avoid coverage-testing difficulties
(defmacro ses--time-check (format &rest args)
  "If `ses-start-time' is more than a second ago, call `message' with FORMAT
and ARGS and reset `ses-start-time' to the current time."
  `(when (time-less-p 1 (time-since ses-start-time))
     (message ,format ,@args)
     (setq ses-start-time (float-time))))