diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2024-07-11 15:03:50 +0200 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2024-07-11 16:01:41 +0200 |
commit | e8b3c4cb58ce6e78b9bcfb9146f0ac6ece0d3055 (patch) | |
tree | 0d8dee0085a57af219461da130c9a0fd75ae1e7d /lisp/emacs-lisp | |
parent | 75f53d7c2c1f6706d1d4c1f3eed3aa675464c62f (diff) | |
download | emacs-e8b3c4cb58ce6e78b9bcfb9146f0ac6ece0d3055.tar.gz emacs-e8b3c4cb58ce6e78b9bcfb9146f0ac6ece0d3055.tar.bz2 emacs-e8b3c4cb58ce6e78b9bcfb9146f0ac6ece0d3055.zip |
Decode current time directly to timespec
* src/timefns.c (decode_time_components): If FASTER_TIMEFNS, when
returning the current time and the desired form is struct timespec
or time_t, return it directly rather than converting it to struct
ticks_hz and then to struct timespec. This can avoid some mpz
calculations and/or bignums.
Diffstat (limited to 'lisp/emacs-lisp')
0 files changed, 0 insertions, 0 deletions