diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2022-03-04 19:21:38 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2022-03-04 19:29:05 -0800 |
commit | 2fbd48f733426824cb89b958378a52cfb053774c (patch) | |
tree | 79426b942d4901e0049837f29426ebf299181bcd /src/systime.h | |
parent | b19ec1be3c35b0ec231282ab51d0b320e2967052 (diff) | |
download | emacs-2fbd48f733426824cb89b958378a52cfb053774c.tar.gz |
Fix process-attributes time precision on GNU/Linux
* src/sysdep.c [GNU_LINUX]:
(time_from_jiffies): Simplify by using time-convert. Change args
and result type. All uses changed.
(ltime_from_jiffies): Remove; call time_from_jiffies instead.
(put_jiffies): New function.
(get_up_time): Return Lisp_Object not struct timespec.
All uses changed. Simplify by using time-add.
(system_process_attributes): Simplify by using the above.
This fixes some minor problems where timestamps promised more
precision than was actually available. When info is not
available (e.g., sysconf fails) do not place it into the alist.
* src/timefns.c (float_time): Now extern.
Diffstat (limited to 'src/systime.h')
-rw-r--r-- | src/systime.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/systime.h b/src/systime.h index f3b1b2394da..41d728f1c29 100644 --- a/src/systime.h +++ b/src/systime.h @@ -92,6 +92,7 @@ extern bool list4_to_timespec (Lisp_Object, Lisp_Object, Lisp_Object, Lisp_Object, struct timespec *); extern struct timespec lisp_time_argument (Lisp_Object); extern AVOID time_overflow (void); +extern double float_time (Lisp_Object); extern void init_timefns (void); extern void syms_of_timefns (void); |