Subject: bug#52235: 29.0.50; Suggestion: refactor time.el into a more general 'clock' framework

From: Lars Ingebrigtsen <[email-masked]>
Date: Thu, 02 Dec 2021 09:29:44 +0100

Arthur Miller <[email-masked]> writes:

> My idea to per-use it is to simply run 'update-hooks' on clock beat,
> so any application can register a hook that will be called on a "clock
> beat". While it is maybe not so super-synchronized with system clock,
> it still gives impression of clocks in Emacs be synchronized.

If I understand correctly, by "clock beat" you mean an integer multiple
of some time?  timer.el didn't support that well previously, but this
was fixed a few months ago (in 50765f3f) with TIME:

- or t (with non-nil REPEAT) meaning the next integral
  multiple of REPEAT.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no