[Top][All Lists]

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

bug#32902: Add support for (TIMESTAMP . RESOLUTION) Lisp timestamps

From: Paul Eggert
Subject: bug#32902: Add support for (TIMESTAMP . RESOLUTION) Lisp timestamps
Date: Mon, 1 Oct 2018 18:00:26 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0

The attached patches follow up on a suggestion by Stefan a few weeks ago, by adding support for a new Lisp timestamp format (TIMESTAMP . FREQUENCY), where TIMESTAMP is an integer that counts clock ticks and FREQUENCY is a positive integer that counts ticks per second. For brevity the documentation says (TICKS . HZ) instead of (TIMESTAMP . FREQUENCY).

Although current-time and similar functions continue to return the (HI LO US PS) format, the idea is that Emacs eventually should switch to (TICKS . HZ) as it is a better match for an Emacs with bignums (among other things, it does not lose information), and in the meantime we can better document that the Lisp timestamp format has changed in the past and can change in the future, and that user code should not depend on the exact timestamp format.

Attachment: 0001-Move-timestamp-related-stuff-to-systime.c.patch
Description: Text Data

Attachment: 0002-Coalesce-duplicate-make_lisp_timeval-etc.patch
Description: Text Data

Attachment: 0003-Export-converting-mpz-to-u-intmax.patch
Description: Text Data

Attachment: 0004-New-TICKS-.-HZ-timestamp-format.patch
Description: Text Data

reply via email to

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