diff options
Diffstat (limited to 'src/alloc.c')
| -rw-r--r-- | src/alloc.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/alloc.c b/src/alloc.c index aba76386dd6..490632f282f 100644 --- a/src/alloc.c +++ b/src/alloc.c @@ -5669,12 +5669,14 @@ See Info node `(elisp)Garbage Collection'. */) } /* Accumulate statistics. */ - EMACS_GET_TIME (t2); - EMACS_SUB_TIME (t3, t2, t1); if (FLOATP (Vgc_elapsed)) - Vgc_elapsed = make_float (XFLOAT_DATA (Vgc_elapsed) + - EMACS_SECS (t3) + - EMACS_USECS (t3) * 1.0e-6); + { + EMACS_GET_TIME (t2); + EMACS_SUB_TIME (t3, t2, t1); + Vgc_elapsed = make_float (XFLOAT_DATA (Vgc_elapsed) + + EMACS_TIME_TO_DOUBLE (t3)); + } + gcs_done++; return Flist (sizeof total / sizeof *total, total); |
