summaryrefslogtreecommitdiff
path: root/src/timefns.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2022-03-04 19:21:38 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2022-03-04 19:29:05 -0800
commit2fbd48f733426824cb89b958378a52cfb053774c (patch)
tree79426b942d4901e0049837f29426ebf299181bcd /src/timefns.c
parentb19ec1be3c35b0ec231282ab51d0b320e2967052 (diff)
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/timefns.c')
-rw-r--r--src/timefns.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/timefns.c b/src/timefns.c
index 795a6484ce9..9b5b090ba71 100644
--- a/src/timefns.c
+++ b/src/timefns.c
@@ -881,7 +881,7 @@ decode_lisp_time (Lisp_Object specified_time, bool decode_secs_only,
/* Convert a Lisp timestamp SPECIFIED_TIME to double.
Signal an error if unsuccessful. */
-static double
+double
float_time (Lisp_Object specified_time)
{
double t;