aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/alloc.c')
-rw-r--r--src/alloc.c12
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'. */)
5669 } 5669 }
5670 5670
5671 /* Accumulate statistics. */ 5671 /* Accumulate statistics. */
5672 EMACS_GET_TIME (t2);
5673 EMACS_SUB_TIME (t3, t2, t1);
5674 if (FLOATP (Vgc_elapsed)) 5672 if (FLOATP (Vgc_elapsed))
5675 Vgc_elapsed = make_float (XFLOAT_DATA (Vgc_elapsed) + 5673 {
5676 EMACS_SECS (t3) + 5674 EMACS_GET_TIME (t2);
5677 EMACS_USECS (t3) * 1.0e-6); 5675 EMACS_SUB_TIME (t3, t2, t1);
5676 Vgc_elapsed = make_float (XFLOAT_DATA (Vgc_elapsed)
5677 + EMACS_TIME_TO_DOUBLE (t3));
5678 }
5679
5678 gcs_done++; 5680 gcs_done++;
5679 5681
5680 return Flist (sizeof total / sizeof *total, total); 5682 return Flist (sizeof total / sizeof *total, total);