unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Repeating timers and suspending the computer
@ 2022-12-09  5:20 Marcin Borkowski
  2022-12-09  7:25 ` Eli Zaretskii
  0 siblings, 1 reply; 10+ messages in thread
From: Marcin Borkowski @ 2022-12-09  5:20 UTC (permalink / raw)
  To: Help Gnu Emacs mailing list

Hi all,

assume that I said

(run-with-timer 0 1
                (lambda () (message "%s" (format-time-string "%H:%M:%S.%3N"))))

and put my laptop in the "sleep mode" for 20 seconds.  How many time
messages should I get?  Assume `timer-max-repeats' is 10 (which seems to
be the default).

When I did the experiment, it seemed that the timer'd function was run
/twice/ after waking up, which looks really strange -- why two times?

Best,

-- 
Marcin Borkowski
http://mbork.pl



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2022-12-15 15:28 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-09  5:20 Repeating timers and suspending the computer Marcin Borkowski
2022-12-09  7:25 ` Eli Zaretskii
2022-12-10  4:48   ` Emanuel Berg
2022-12-10 21:39   ` Marcin Borkowski
2022-12-11  6:52     ` Eli Zaretskii
2022-12-13  5:16       ` Marcin Borkowski
2022-12-13 12:32         ` Eli Zaretskii
2022-12-14 20:13           ` Marcin Borkowski
2022-12-15  6:11             ` Eli Zaretskii
2022-12-15 15:28               ` Marcin Borkowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).