emacs-devel
[Top][All Lists]
Advanced

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

Re: Time resolution in Emacs argument optional ones


From: Paul Eggert
Subject: Re: Time resolution in Emacs argument optional ones
Date: Fri, 22 Apr 2022 14:26:16 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0

On 4/22/22 11:52, Corwin Brust wrote:
Since this seems to be in reply to Eli's question about use-cases, can
you elaborate on some of the specific use-cases where 1/64th of a
second is insufficient?

When Emacs needs to deal with more than 64 spaced events per second, or with external time sources that deal with more than 64 such events per second, a resolution of 1/64 second is inadequate.

In my previous message I gave the example of comparing the current time in 1/64-second resolution to file timestamps in (say) 100 ns resolution, where Emacs can compare timestamps incorrectly.

Another example would be comparing internally-generated timestamps to Internet RFC 3339 or ISO 8601 timestamps retrieved from the outside world. LANs synchronized via NTP can routinely synchronize clocks to less than 10 ms, and processes running on a single node can synchronize even more closely. But if Emacs reports the current time to within only 1/64 s, its timestamps introduce more clock skew than its underlying platforms do, making it harder to build distributed apps with high-quality timestamps.

Of course most apps don't need high-quality timestamps. However, I don't see why Emacs would insist on generating low-quality timestamps if higher-quality timestamps are readily available.



reply via email to

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