help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Minibuffer tray to display current time and date


From: Eli Zaretskii
Subject: Re: Minibuffer tray to display current time and date
Date: Fri, 24 Apr 2015 17:41:21 +0300

> Date: Fri, 24 Apr 2015 16:13:19 +0200
> From: <address@hidden>
> Cc: address@hidden
> 
> > > Optimal would be to run now, and then (run-at-time
> > > NEXT-TIME-MINUTE-CHANGES nil (lambda () (run-at-time
> > > t 60 ...
> > 
> > Are you thinking like this: "The granularity of the
> > clock is 1 minute. So it should be updated once every
> > minute, i.e. every 60 seconds."
> > 
> > That sounds a bit risky to me, so I'd recommend setting
> > it so that it will be set somewhere around three times
> > per minute - and not set evenly so, but for example
> > every 22 seconds:
> > 
> >     0, 22, 44, 6 (66), 28, 50, ...
> 
> This sounds a bit roundabout: why not run-at-time? Do you fear
> that it gets out of sync?

Instead of arguing, just look at how display-time-mode does it, this
problem is already solved there.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]